Unverified Commit d1214bd4 authored by Viral Solani's avatar Viral Solani Committed by GitHub

Merge pull request #208 from bvipul/develop

Develop
parents 53ae2056 f2cd486f
...@@ -76,6 +76,10 @@ For generating the files of unisharp file manager ...@@ -76,6 +76,10 @@ For generating the files of unisharp file manager
php artisan vendor:publish --tag=lfm_public php artisan vendor:publish --tag=lfm_public
For linking storage folder in public
php artisan storage:link
Start the local development server Start the local development server
php artisan serve php artisan serve
...@@ -92,6 +96,7 @@ You can now access the server at http://localhost:8000 ...@@ -92,6 +96,7 @@ You can now access the server at http://localhost:8000
composer install composer install
npm install npm install
npm run development npm run development
php artisan storage:link
php artisan key:generate php artisan key:generate
php artisan jwt:secret php artisan jwt:secret
php artisan vendor:publish --tag=lfm_public php artisan vendor:publish --tag=lfm_public
......
<?php
namespace App\Helpers\Macros;
use App\Helpers\Macros\Traits\Dropdowns;
use Collective\Html\FormBuilder;
/**
* Class Macros.
*/
class Macros extends FormBuilder
{
use Dropdowns;
}
<?php
namespace App\Helpers\Macros\Traits;
/**
* Class Dropdowns.
*/
trait Dropdowns
{
/**
* Use this to set the default country state type for the shorthand method.
*
* @param $name
* @param null $selected
* @param array $options
*
* @return string
*/
public function selectState($name, $selected = null, $options = [])
{
return $this->selectStateUS($name, $selected, $options);
}
/**
* @param $name
* @param null $selected
* @param array $options
*
* @return string
*/
public function selectStateUS($name, $selected = null, $options = [])
{
$list = [
'' => 'Select One...',
'AL' => 'Alabama',
'AK' => 'Alaska',
'AZ' => 'Arizona',
'AR' => 'Arkansas',
'CA' => 'California',
'CO' => 'Colorado',
'CT' => 'Connecticut',
'DE' => 'Delaware',
'DC' => 'District of Columbia',
'FL' => 'Florida',
'GA' => 'Georgia',
'HI' => 'Hawaii',
'ID' => 'Idaho',
'IL' => 'Illinois',
'IN' => 'Indiana',
'IA' => 'Iowa',
'KS' => 'Kansas',
'KY' => 'Kentucky',
'LA' => 'Louisiana',
'ME' => 'Maine',
'MD' => 'Maryland',
'MA' => 'Massachusetts',
'MI' => 'Michigan',
'MN' => 'Minnesota',
'MS' => 'Mississippi',
'MO' => 'Missouri',
'MT' => 'Montana',
'NE' => 'Nebraska',
'NV' => 'Nevada',
'NH' => 'New Hampshire',
'NJ' => 'New Jersey',
'NM' => 'New Mexico',
'NY' => 'New York',
'NC' => 'North Carolina',
'ND' => 'North Dakota',
'OH' => 'Ohio',
'OK' => 'Oklahoma',
'OR' => 'Oregon',
'PA' => 'Pennsylvania',
'RI' => 'Rhode Island',
'SC' => 'South Carolina',
'SD' => 'South Dakota',
'TN' => 'Tennessee',
'TX' => 'Texas',
'UT' => 'Utah',
'VT' => 'Vermont',
'VA' => 'Virginia',
'WA' => 'Washington',
'WV' => 'West Virginia',
'WI' => 'Wisconsin',
'WY' => 'Wyoming',
];
return $this->select($name, $list, $selected, $options);
}
/**
* @param $name
* @param null $selected
* @param array $options
*
* @return mixed
*/
public function selectStateUSOutlyingTerritories($name, $selected = null, $options = [])
{
$list = [
'' => 'Select One...',
'AS' => 'American Samoa',
'GU' => 'Guam',
'MP' => 'Northern Mariana Islands',
'PR' => 'Puerto Rico',
'UM' => 'United States Minor Outlying Islands',
'VI' => 'Virgin Islands',
];
return $this->select($name, $list, $selected, $options);
}
/**
* @param $name
* @param null $selected
* @param array $options
*
* @return mixed
*/
public function selectStateUSArmedForces($name, $selected = null, $options = [])
{
$list = [
'' => 'Select One...',
'AA' => 'Armed Forces Americas',
'AP' => 'Armed Forces Pacific',
'AE' => 'Armed Forces Others',
];
return $this->select($name, $list, $selected, $options);
}
/**
* @param $name
* @param null $selected
* @param array $options
*
* @return mixed
*/
public function selectCanadaTerritories($name, $selected = null, $options = [])
{
$list = [
'' => 'Select One...',
'AB' => 'Alberta',
'BC' => 'British Columbia',
'MB' => 'Manitoba',
'NB' => 'New Brunswick',
'NL' => 'Newfoundland and Labrador',
'NS' => 'Nova Scotia',
'ON' => 'Ontario',
'PE' => 'Prince Edward Island',
'QC' => 'Quebec',
'SK' => 'Saskatchewan',
'NT' => 'Northwest Territories',
'NU' => 'Nunavut',
'YT' => 'Yukon',
];
return $this->select($name, $list, $selected, $options);
}
/**
* @param $name
* @param null $selected
* @param array $options
*
* @return mixed
*/
public function selectStateMexico($name, $selected = null, $options = [])
{
$list = [
'' => 'Select One...',
'DIF' => 'Distrito Federal',
'AGS' => 'Aguascalientes',
'BCN' => 'Baja California',
'BCS' => 'Baja California Sur',
'CAM' => 'Campeche',
'CHP' => 'Chiapas',
'CHI' => 'Chihuahua',
'COA' => 'Coahuila',
'COL' => 'Colima',
'DUR' => 'Durango',
'GTO' => 'Guanajuato',
'GRO' => 'Guerrero',
'HGO' => 'Hidalgo',
'JAL' => 'Jalisco',
'MEX' => 'Mexico',
'MIC' => 'Michoacan',
'MOR' => 'Morelos',
'NAY' => 'Nayarit',
'NLE' => 'Nuevo Le&oacute;n',
'OAX' => 'Oaxaca',
'PUE' => 'Puebla',
'QRO' => 'Queretaro',
'ROO' => 'Quintana Roo',
'SLP' => 'San Luis Potos&iacute;',
'SIN' => 'Sinaloa',
'SON' => 'Sonora',
'TAB' => 'Tabasco',
'TAM' => 'Tamaulipas',
'TLX' => 'Tlaxcala',
'VER' => 'Veracruz',
'YUC' => 'Yucatan',
'ZAC' => 'Zacatecas',
];
return $this->select($name, $list, $selected, $options);
}
/**
* Use this to set the default country dropdown type for the shorthand method.
*
* @param $name
* @param null $selected
* @param array $options
*
* @return string
*/
public function selectCountry($name, $selected = null, $options = [])
{
return $this->selectCountryAlpha2($name, $selected, $options);
}
/**
* @param $name
* @param null $selected
* @param array $options
*
* @return mixed
*/
public function selectCountryAlpha($name, $selected = null, $options = [])
{
$list = [
'' => 'Select One...',
'ISO 3166-2:AF' => 'Afghanistan',
'ISO 3166-2:AX' => 'Åland Islands',
'ISO 3166-2:AL' => 'Albania',
'ISO 3166-2:DZ' => 'Algeria',
'ISO 3166-2:AS' => 'American Samoa',
'ISO 3166-2:AD' => 'Andorra',
'ISO 3166-2:AO' => 'Angola',
'ISO 3166-2:AI' => 'Anguilla',
'ISO 3166-2:AQ' => 'Antarctica',
'ISO 3166-2:AG' => 'Antigua and Barbuda',
'ISO 3166-2:AR' => 'Argentina',
'ISO 3166-2:AM' => 'Armenia',
'ISO 3166-2:AW' => 'Aruba',
'ISO 3166-2:AU' => 'Australia',
'ISO 3166-2:AT' => 'Austria',
'ISO 3166-2:AZ' => 'Azerbaijan',
'ISO 3166-2:BS' => 'Bahamas',
'ISO 3166-2:BH' => 'Bahrain',
'ISO 3166-2:BD' => 'Bangladesh',
'ISO 3166-2:BB' => 'Barbados',
'ISO 3166-2:BY' => 'Belarus',
'ISO 3166-2:BE' => 'Belgium',
'ISO 3166-2:BZ' => 'Belize',
'ISO 3166-2:BJ' => 'Benin',
'ISO 3166-2:BM' => 'Bermuda',
'ISO 3166-2:BT' => 'Bhutan',
'ISO 3166-2:BO' => 'Bolivia, Plurinational State of',
'ISO 3166-2:BQ' => 'Bonaire, Sint Eustatius and Saba',
'ISO 3166-2:BA' => 'Bosnia and Herzegovina',
'ISO 3166-2:BW' => 'Botswana',
'ISO 3166-2:BV' => 'Bouvet Island',
'ISO 3166-2:BR' => 'Brazil',
'ISO 3166-2:IO' => 'British Indian Ocean Territory',
'ISO 3166-2:BN' => 'Brunei Darussalam',
'ISO 3166-2:BG' => 'Bulgaria',
'ISO 3166-2:BF' => 'Burkina Faso',
'ISO 3166-2:BI' => 'Burundi',
'ISO 3166-2:KH' => 'Cambodia',
'ISO 3166-2:CM' => 'Cameroon',
'ISO 3166-2:CA' => 'Canada',
'ISO 3166-2:CV' => 'Cape Verde',
'ISO 3166-2:KY' => 'Cayman Islands',
'ISO 3166-2:CF' => 'Central African Republic',
'ISO 3166-2:TD' => 'Chad',
'ISO 3166-2:CL' => 'Chile',
'ISO 3166-2:CN' => 'China',
'ISO 3166-2:CX' => 'Christmas Island',
'ISO 3166-2:CC' => 'Cocos (Keeling) Islands',
'ISO 3166-2:CO' => 'Colombia',
'ISO 3166-2:KM' => 'Comoros',
'ISO 3166-2:CG' => 'Congo',
'ISO 3166-2:CD' => 'Congo, the Democratic Republic of the',
'ISO 3166-2:CK' => 'Cook Islands',
'ISO 3166-2:CR' => 'Costa Rica',
'ISO 3166-2:CI' => 'Côte d\Ivoire',
'ISO 3166-2:HR' => 'Croatia',
'ISO 3166-2:CU' => 'Cuba',
'ISO 3166-2:CW' => 'Curaçao',
'ISO 3166-2:CY' => 'Cyprus',
'ISO 3166-2:CZ' => 'Czech Republic',
'ISO 3166-2:DK' => 'Denmark',
'ISO 3166-2:DJ' => 'Djibouti',
'ISO 3166-2:DM' => 'Dominica',
'ISO 3166-2:DO' => 'Dominican Republic',
'ISO 3166-2:EC' => 'Ecuador',
'ISO 3166-2:EG' => 'Egypt',
'ISO 3166-2:SV' => 'El Salvador',
'ISO 3166-2:GQ' => 'Equatorial Guinea',
'ISO 3166-2:ER' => 'Eritrea',
'ISO 3166-2:EE' => 'Estonia',
'ISO 3166-2:ET' => 'Ethiopia',
'ISO 3166-2:FK' => 'Falkland Islands (Malvinas)',
'ISO 3166-2:FO' => 'Faroe Islands',
'ISO 3166-2:FJ' => 'Fiji',
'ISO 3166-2:FI' => 'Finland',
'ISO 3166-2:FR' => 'France',
'ISO 3166-2:GF' => 'French Guiana',
'ISO 3166-2:PF' => 'French Polynesia',
'ISO 3166-2:TF' => 'French Southern Territories',
'ISO 3166-2:GA' => 'Gabon',
'ISO 3166-2:GM' => 'Gambia',
'ISO 3166-2:GE' => 'Georgia',
'ISO 3166-2:DE' => 'Germany',
'ISO 3166-2:GH' => 'Ghana',
'ISO 3166-2:GI' => 'Gibraltar',
'ISO 3166-2:GR' => 'Greece',
'ISO 3166-2:GL' => 'Greenland',
'ISO 3166-2:GD' => 'Grenada',
'ISO 3166-2:GP' => 'Guadeloupe',
'ISO 3166-2:GU' => 'Guam',
'ISO 3166-2:GT' => 'Guatemala',
'ISO 3166-2:GG' => 'Guernsey',
'ISO 3166-2:GN' => 'Guinea',
'ISO 3166-2:GW' => 'Guinea-Bissau',
'ISO 3166-2:GY' => 'Guyana',
'ISO 3166-2:HT' => 'Haiti',
'ISO 3166-2:HM' => 'Heard Island and McDonald Islands',
'ISO 3166-2:VA' => 'Holy See (Vatican City State)',
'ISO 3166-2:HN' => 'Honduras',
'ISO 3166-2:HK' => 'Hong Kong',
'ISO 3166-2:HU' => 'Hungary',
'ISO 3166-2:IS' => 'Iceland',
'ISO 3166-2:IN' => 'India',
'ISO 3166-2:ID' => 'Indonesia',
'ISO 3166-2:IR' => 'Iran, Islamic Republic of',
'ISO 3166-2:IQ' => 'Iraq',
'ISO 3166-2:IE' => 'Ireland',
'ISO 3166-2:IM' => 'Isle of Man',
'ISO 3166-2:IL' => 'Israel',
'ISO 3166-2:IT' => 'Italy',
'ISO 3166-2:JM' => 'Jamaica',
'ISO 3166-2:JP' => 'Japan',
'ISO 3166-2:JE' => 'Jersey',
'ISO 3166-2:JO' => 'Jordan',
'ISO 3166-2:KZ' => 'Kazakhstan',
'ISO 3166-2:KE' => 'Kenya',
'ISO 3166-2:KI' => 'Kiribati',
'ISO 3166-2:KP' => 'Korea, Democratic People\'s Republic of',
'ISO 3166-2:KR' => 'Korea, Republic of',
'ISO 3166-2:KW' => 'Kuwait',
'ISO 3166-2:KG' => 'Kyrgyzstan',
'ISO 3166-2:LA' => 'Lao People\'s Democratic Republic',
'ISO 3166-2:LV' => 'Latvia',
'ISO 3166-2:LB' => 'Lebanon',
'ISO 3166-2:LS' => 'Lesotho',
'ISO 3166-2:LR' => 'Liberia',
'ISO 3166-2:LY' => 'Libya',
'ISO 3166-2:LI' => 'Liechtenstein',
'ISO 3166-2:LT' => 'Lithuania',
'ISO 3166-2:LU' => 'Luxembourg',
'ISO 3166-2:MO' => 'Macao',
'ISO 3166-2:MK' => 'Macedonia, the former Yugoslav Republic of',
'ISO 3166-2:MG' => 'Madagascar',
'ISO 3166-2:MW' => 'Malawi',
'ISO 3166-2:MY' => 'Malaysia',
'ISO 3166-2:MV' => 'Maldives',
'ISO 3166-2:ML' => 'Mali',
'ISO 3166-2:MT' => 'Malta',
'ISO 3166-2:MH' => 'Marshall Islands',
'ISO 3166-2:MQ' => 'Martinique',
'ISO 3166-2:MR' => 'Mauritania',
'ISO 3166-2:MU' => 'Mauritius',
'ISO 3166-2:YT' => 'Mayotte',
'ISO 3166-2:MX' => 'Mexico',
'ISO 3166-2:FM' => 'Micronesia, Federated States of',
'ISO 3166-2:MD' => 'Moldova, Republic of',
'ISO 3166-2:MC' => 'Monaco',
'ISO 3166-2:MN' => 'Mongolia',
'ISO 3166-2:ME' => 'Montenegro',
'ISO 3166-2:MS' => 'Montserrat',
'ISO 3166-2:MA' => 'Morocco',
'ISO 3166-2:MZ' => 'Mozambique',
'ISO 3166-2:MM' => 'Myanmar',
'ISO 3166-2:NA' => 'Namibia',
'ISO 3166-2:NR' => 'Nauru',
'ISO 3166-2:NP' => 'Nepal',
'ISO 3166-2:NL' => 'Netherlands',
'ISO 3166-2:NC' => 'New Caledonia',
'ISO 3166-2:NZ' => 'New Zealand',
'ISO 3166-2:NI' => 'Nicaragua',
'ISO 3166-2:NE' => 'Niger',
'ISO 3166-2:NG' => 'Nigeria',
'ISO 3166-2:NU' => 'Niue',
'ISO 3166-2:NF' => 'Norfolk Island',
'ISO 3166-2:MP' => 'Northern Mariana Islands',
'ISO 3166-2:NO' => 'Norway',
'ISO 3166-2:OM' => 'Oman',
'ISO 3166-2:PK' => 'Pakistan',
'ISO 3166-2:PW' => 'Palau',
'ISO 3166-2:PS' => 'Palestinian Territory, Occupied',
'ISO 3166-2:PA' => 'Panama',
'ISO 3166-2:PG' => 'Papua New Guinea',
'ISO 3166-2:PY' => 'Paraguay',
'ISO 3166-2:PE' => 'Peru',
'ISO 3166-2:PH' => 'Philippines',
'ISO 3166-2:PN' => 'Pitcairn',
'ISO 3166-2:PL' => 'Poland',
'ISO 3166-2:PT' => 'Portugal',
'ISO 3166-2:PR' => 'Puerto Rico',
'ISO 3166-2:QA' => 'Qatar',
'ISO 3166-2:RE' => 'Réunion',
'ISO 3166-2:RO' => 'Romania',
'ISO 3166-2:RU' => 'Russian Federation',
'ISO 3166-2:RW' => 'Rwanda',
'ISO 3166-2:BL' => 'Saint Barthélemy',
'ISO 3166-2:SH' => 'Saint Helena, Ascension and Tristan da Cunha',
'ISO 3166-2:KN' => 'Saint Kitts and Nevis',
'ISO 3166-2:LC' => 'Saint Lucia',
'ISO 3166-2:MF' => 'Saint Martin (French part)',
'ISO 3166-2:PM' => 'Saint Pierre and Miquelon',
'ISO 3166-2:VC' => 'Saint Vincent and the Grenadines',
'ISO 3166-2:WS' => 'Samoa',
'ISO 3166-2:SM' => 'San Marino',
'ISO 3166-2:ST' => 'Sao Tome and Principe',
'ISO 3166-2:SA' => 'Saudi Arabia',
'ISO 3166-2:SN' => 'Senegal',
'ISO 3166-2:RS' => 'Serbia',
'ISO 3166-2:SC' => 'Seychelles',
'ISO 3166-2:SL' => 'Sierra Leone',
'ISO 3166-2:SG' => 'Singapore',
'ISO 3166-2:SX' => 'Sint Maarten (Dutch part)',
'ISO 3166-2:SK' => 'Slovakia',
'ISO 3166-2:SI' => 'Slovenia',
'ISO 3166-2:SB' => 'Solomon Islands',
'ISO 3166-2:SO' => 'Somalia',
'ISO 3166-2:ZA' => 'South Africa',
'ISO 3166-2:GS' => 'South Georgia and the South Sandwich Islands',
'ISO 3166-2:SS' => 'South Sudan',
'ISO 3166-2:ES' => 'Spain',
'ISO 3166-2:LK' => 'Sri Lanka',
'ISO 3166-2:SD' => 'Sudan',
'ISO 3166-2:SR' => 'Suriname',
'ISO 3166-2:SJ' => 'Svalbard and Jan Mayen',
'ISO 3166-2:SZ' => 'Swaziland',
'ISO 3166-2:SE' => 'Sweden',
'ISO 3166-2:CH' => 'Switzerland',
'ISO 3166-2:SY' => 'Syrian Arab Republic',
'ISO 3166-2:TW' => 'Taiwan, Province of China',
'ISO 3166-2:TJ' => 'Tajikistan',
'ISO 3166-2:TZ' => 'Tanzania, United Republic of',
'ISO 3166-2:TH' => 'Thailand',
'ISO 3166-2:TL' => 'Timor-Leste',
'ISO 3166-2:TG' => 'Togo',
'ISO 3166-2:TK' => 'Tokelau',
'ISO 3166-2:TO' => 'Tonga',
'ISO 3166-2:TT' => 'Trinidad and Tobago',
'ISO 3166-2:TN' => 'Tunisia',
'ISO 3166-2:TR' => 'Turkey',
'ISO 3166-2:TM' => 'Turkmenistan',
'ISO 3166-2:TC' => 'Turks and Caicos Islands',
'ISO 3166-2:TV' => 'Tuvalu',
'ISO 3166-2:UG' => 'Uganda',
'ISO 3166-2:UA' => 'Ukraine',
'ISO 3166-2:AE' => 'United Arab Emirates',
'ISO 3166-2:GB' => 'United Kingdom',
'ISO 3166-2:US' => 'United States',
'ISO 3166-2:UM' => 'United States Minor Outlying Islands',
'ISO 3166-2:UY' => 'Uruguay',
'ISO 3166-2:UZ' => 'Uzbekistan',
'ISO 3166-2:VU' => 'Vanuatu',
'ISO 3166-2:VE' => 'Venezuela, Bolivarian Republic of',
'ISO 3166-2:VN' => 'Viet Nam',
'ISO 3166-2:VG' => 'Virgin Islands, British',
'ISO 3166-2:VI' => 'Virgin Islands, U.S.',
'ISO 3166-2:WF' => 'Wallis and Futuna',
'ISO 3166-2:EH' => 'Western Sahara',
'ISO 3166-2:YE' => 'Yemen',
'ISO 3166-2:ZM' => 'Zambia',
'ISO 3166-2:ZW' => 'Zimbabwe',
];
return $this->select($name, $list, $selected, $options);
}
/**
* @param $name
* @param null $selected
* @param array $options
*
* @return string
*/
public function selectCountryAlpha2($name, $selected = null, $options = [])
{
$list = [
'' => 'Select One...',
'AF' => 'Afghanistan',
'AX' => 'Aland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarctica',
'AG' => 'Antigua and Barbuda',
'AR' => 'Argentina',
'AM' => 'Armenia',
'AW' => 'Aruba',
'AU' => 'Australia',
'AT' => 'Austria',
'AZ' => 'Azerbaijan',
'BS' => 'Bahamas',
'BH' => 'Bahrain',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BY' => 'Belarus',
'BE' => 'Belgium',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BO' => 'Bolivia',
'BA' => 'Bosnia and Herzegovina',
'BW' => 'Botswana',
'BV' => 'Bouvet Island',
'BR' => 'Brazil',
'IO' => 'British Indian Ocean Territory',
'BN' => 'Brunei Darussalam',
'BG' => 'Bulgaria',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'KH' => 'Cambodia',
'CM' => 'Cameroon',
'CA' => 'Canada',
'CV' => 'Cape Verde',
'KY' => 'Cayman Islands',
'CF' => 'Central African Republic',
'TD' => 'Chad',
'CL' => 'Chile',
'CN' => 'China',
'CX' => 'Christmas Island',
'CC' => 'Cocos (Keeling) Islands',
'CO' => 'Colombia',
'KM' => 'Comoros',
'CG' => 'Congo',
'CD' => 'Congo, The Democratic Republic of The',
'CK' => 'Cook Islands',
'CR' => 'Costa Rica',
'CI' => 'Cote D\'ivoire',
'HR' => 'Croatia',
'CU' => 'Cuba',
'CY' => 'Cyprus',
'CZ' => 'Czech Republic',
'DK' => 'Denmark',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
'DO' => 'Dominican Republic',
'EC' => 'Ecuador',
'EG' => 'Egypt',
'SV' => 'El Salvador',
'GQ' => 'Equatorial Guinea',
'ER' => 'Eritrea',
'EE' => 'Estonia',
'ET' => 'Ethiopia',
'FK' => 'Falkland Islands (Malvinas)',
'FO' => 'Faroe Islands',
'FJ' => 'Fiji',
'FI' => 'Finland',
'FR' => 'France',
'GF' => 'French Guiana',
'PF' => 'French Polynesia',
'TF' => 'French Southern Territories',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GE' => 'Georgia',
'DE' => 'Germany',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GR' => 'Greece',
'GL' => 'Greenland',
'GD' => 'Grenada',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea-bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'HM' => 'Heard Island and Mcdonald Islands',
'VA' => 'Holy See (Vatican City State)',
'HN' => 'Honduras',
'HK' => 'Hong Kong',
'HU' => 'Hungary',
'IS' => 'Iceland',
'IN' => 'India',
'ID' => 'Indonesia',
'IR' => 'Iran, Islamic Republic of',
'IQ' => 'Iraq',
'IE' => 'Ireland',
'IM' => 'Isle of Man',
'IL' => 'Israel',
'IT' => 'Italy',
'JM' => 'Jamaica',
'JP' => 'Japan',
'JE' => 'Jersey',
'JO' => 'Jordan',
'KZ' => 'Kazakhstan',
'KE' => 'Kenya',
'KI' => 'Kiribati',
'KP' => 'Korea, Democratic People\'s Republic of',
'KR' => 'Korea, Republic of',
'KW' => 'Kuwait',
'KG' => 'Kyrgyzstan',
'LA' => 'Lao People\'s Democratic Republic',
'LV' => 'Latvia',
'LB' => 'Lebanon',
'LS' => 'Lesotho',
'LR' => 'Liberia',
'LY' => 'Libyan Arab Jamahiriya',
'LI' => 'Liechtenstein',
'LT' => 'Lithuania',
'LU' => 'Luxembourg',
'MO' => 'Macao',
'MK' => 'Macedonia, The Former Yugoslav Republic of',
'MG' => 'Madagascar',
'MW' => 'Malawi',
'MY' => 'Malaysia',
'MV' => 'Maldives',
'ML' => 'Mali',
'MT' => 'Malta',
'MH' => 'Marshall Islands',
'MQ' => 'Martinique',
'MR' => 'Mauritania',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MX' => 'Mexico',
'FM' => 'Micronesia, Federated States of',
'MD' => 'Moldova, Republic of',
'MC' => 'Monaco',
'MN' => 'Mongolia',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MA' => 'Morocco',
'MZ' => 'Mozambique',
'MM' => 'Myanmar',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NL' => 'Netherlands',
'AN' => 'Netherlands Antilles',
'NC' => 'New Caledonia',
'NZ' => 'New Zealand',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'NF' => 'Norfolk Island',
'MP' => 'Northern Mariana Islands',
'NO' => 'Norway',
'OM' => 'Oman',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestinian Territory, Occupied',
'PA' => 'Panama',
'PG' => 'Papua New Guinea',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PH' => 'Philippines',
'PN' => 'Pitcairn',
'PL' => 'Poland',
'PT' => 'Portugal',
'PR' => 'Puerto Rico',
'QA' => 'Qatar',
'RE' => 'Reunion',
'RO' => 'Romania',
'RU' => 'Russian Federation',
'RW' => 'Rwanda',
'SH' => 'Saint Helena',
'KN' => 'Saint Kitts and Nevis',
'LC' => 'Saint Lucia',
'PM' => 'Saint Pierre and Miquelon',
'VC' => 'Saint Vincent and The Grenadines',
'WS' => 'Samoa',
'SM' => 'San Marino',
'ST' => 'Sao Tome and Principe',
'SA' => 'Saudi Arabia',
'SN' => 'Senegal',
'RS' => 'Serbia',
'SC' => 'Seychelles',
'SL' => 'Sierra Leone',
'SG' => 'Singapore',
'SK' => 'Slovakia',
'SI' => 'Slovenia',
'SB' => 'Solomon Islands',
'SO' => 'Somalia',
'ZA' => 'South Africa',
'GS' => 'South Georgia and The South Sandwich Islands',
'ES' => 'Spain',
'LK' => 'Sri Lanka',
'SD' => 'Sudan',
'SR' => 'Suriname',
'SJ' => 'Svalbard and Jan Mayen',
'SZ' => 'Swaziland',
'SE' => 'Sweden',
'CH' => 'Switzerland',
'SY' => 'Syrian Arab Republic',
'TW' => 'Taiwan, Province of China',
'TJ' => 'Tajikistan',
'TZ' => 'Tanzania, United Republic of',
'TH' => 'Thailand',
'TL' => 'Timor-leste',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad and Tobago',
'TN' => 'Tunisia',
'TR' => 'Turkey',
'TM' => 'Turkmenistan',
'TC' => 'Turks and Caicos Islands',
'TV' => 'Tuvalu',
'UG' => 'Uganda',
'UA' => 'Ukraine',
'AE' => 'United Arab Emirates',
'GB' => 'United Kingdom',
'US' => 'United States',
'UM' => 'United States Minor Outlying Islands',
'UY' => 'Uruguay',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'VE' => 'Venezuela',
'VN' => 'Viet Nam',
'VG' => 'Virgin Islands, British',
'VI' => 'Virgin Islands, U.S.',
'WF' => 'Wallis and Futuna',
'EH' => 'Western Sahara',
'YE' => 'Yemen',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
];
return $this->select($name, $list, $selected, $options);
}
/**
* @param $name
* @param null $selected
* @param array $options
*
* @return string
*/
public function selectCountryAlpha3($name, $selected = null, $options = [])
{
$list = [
'' => 'Select One...',
'AFG' => 'Afghanistan',
'ALA' => 'Åland Islands',
'ALB' => 'Albania',
'DZA' => 'Algeria',
'ASM' => 'American Samoa',
'AND' => 'Andorra',
'AGO' => 'Angola',
'AIA' => 'Anguilla',
'ATA' => 'Antarctica',
'ATG' => 'Antigua and Barbuda',
'ARG' => 'Argentina',
'ARM' => 'Armenia',
'ABW' => 'Aruba',
'AUS' => 'Australia',
'AUT' => 'Austria',
'AZE' => 'Azerbaijan',
'BHS' => 'Bahamas',
'BHR' => 'Bahrain',
'BGD' => 'Bangladesh',
'BRB' => 'Barbados',
'BLR' => 'Belarus',
'BEL' => 'Belgium',
'BLZ' => 'Belize',
'BEN' => 'Benin',
'BMU' => 'Bermuda',
'BTN' => 'Bhutan',
'BOL' => 'Bolivia, Plurinational State of',
'BES' => 'Bonaire, Sint Eustatius and Saba',
'BIH' => 'Bosnia and Herzegovina',
'BWA' => 'Botswana',
'BVT' => 'Bouvet Island',
'BRA' => 'Brazil',
'IOT' => 'British Indian Ocean Territory',
'BRN' => 'Brunei Darussalam',
'BGR' => 'Bulgaria',
'BFA' => 'Burkina Faso',
'BDI' => 'Burundi',
'KHM' => 'Cambodia',
'CMR' => 'Cameroon',
'CAN' => 'Canada',
'CPV' => 'Cape Verde',
'CYM' => 'Cayman Islands',
'CAF' => 'Central African Republic',
'TCD' => 'Chad',
'CHL' => 'Chile',
'CHN' => 'China',
'CXR' => 'Christmas Island',
'CCK' => 'Cocos (Keeling) Islands',
'COL' => 'Colombia',
'COM' => 'Comoros',
'COG' => 'Congo',
'COD' => 'Congo, the Democratic Republic of the',
'COK' => 'Cook Islands',
'CRI' => 'Costa Rica',
'CIV' => 'Côte d\'Ivoire',
'HRV' => 'Croatia',
'CUB' => 'Cuba',
'CUW' => 'Curaçao',
'CYP' => 'Cyprus',
'CZE' => 'Czech Republic',
'DNK' => 'Denmark',
'DJI' => 'Djibouti',
'DMA' => 'Dominica',
'DOM' => 'Dominican Republic',
'ECU' => 'Ecuador',
'EGY' => 'Egypt',
'SLV' => 'El Salvador',
'GNQ' => 'Equatorial Guinea',
'ERI' => 'Eritrea',
'EST' => 'Estonia',
'ETH' => 'Ethiopia',
'FLK' => 'Falkland Islands (Malvinas)',
'FRO' => 'Faroe Islands',
'FJI' => 'Fiji',
'FIN' => 'Finland',
'FRA' => 'France',
'GUF' => 'French Guiana',
'PYF' => 'French Polynesia',
'ATF' => 'French Southern Territories',
'GAB' => 'Gabon',
'GMB' => 'Gambia',
'GEO' => 'Georgia',
'DEU' => 'Germany',
'GHA' => 'Ghana',
'GIB' => 'Gibraltar',
'GRC' => 'Greece',
'GRL' => 'Greenland',
'GRD' => 'Grenada',
'GLP' => 'Guadeloupe',
'GUM' => 'Guam',
'GTM' => 'Guatemala',
'GGY' => 'Guernsey',
'GIN' => 'Guinea',
'GNB' => 'Guinea-Bissau',
'GUY' => 'Guyana',
'HTI' => 'Haiti',
'HMD' => 'Heard Island and McDonald Islands',
'VAT' => 'Holy See (Vatican City State)',
'HND' => 'Honduras',
'HKG' => 'Hong Kong',
'HUN' => 'Hungary',
'ISL' => 'Iceland',
'IND' => 'India',
'IDN' => 'Indonesia',
'IRN' => 'Iran, Islamic Republic of',
'IRQ' => 'Iraq',
'IRL' => 'Ireland',
'IMN' => 'Isle of Man',
'ISR' => 'Israel',
'ITA' => 'Italy',
'JAM' => 'Jamaica',
'JPN' => 'Japan',
'JEY' => 'Jersey',
'JOR' => 'Jordan',
'KAZ' => 'Kazakhstan',
'KEN' => 'Kenya',
'KIR' => 'Kiribati',
'PRK' => 'Korea, Democratic People\'s Republic of',
'KOR' => 'Korea, Republic of',
'KWT' => 'Kuwait',
'KGZ' => 'Kyrgyzstan',
'LAO' => 'Lao People\'s Democratic Republic',
'LVA' => 'Latvia',
'LBN' => 'Lebanon',
'LSO' => 'Lesotho',
'LBR' => 'Liberia',
'LBY' => 'Libya',
'LIE' => 'Liechtenstein',
'LTU' => 'Lithuania',
'LUX' => 'Luxembourg',
'MAC' => 'Macao',
'MKD' => 'Macedonia, the former Yugoslav Republic of',
'MDG' => 'Madagascar',
'MWI' => 'Malawi',
'MYS' => 'Malaysia',
'MDV' => 'Maldives',
'MLI' => 'Mali',
'MLT' => 'Malta',
'MHL' => 'Marshall Islands',
'MTQ' => 'Martinique',
'MRT' => 'Mauritania',
'MUS' => 'Mauritius',
'MYT' => 'Mayotte',
'MEX' => 'Mexico',
'FSM' => 'Micronesia, Federated States of',
'MDA' => 'Moldova, Republic of',
'MCO' => 'Monaco',
'MNG' => 'Mongolia',
'MNE' => 'Montenegro',
'MSR' => 'Montserrat',
'MAR' => 'Morocco',
'MOZ' => 'Mozambique',
'MMR' => 'Myanmar',
'NAM' => 'Namibia',
'NRU' => 'Nauru',
'NPL' => 'Nepal',
'NLD' => 'Netherlands',
'NCL' => 'New Caledonia',
'NZL' => 'New Zealand',
'NIC' => 'Nicaragua',
'NER' => 'Niger',
'NGA' => 'Nigeria',
'NIU' => 'Niue',
'NFK' => 'Norfolk Island',
'MNP' => 'Northern Mariana Islands',
'NOR' => 'Norway',
'OMN' => 'Oman',
'PAK' => 'Pakistan',
'PLW' => 'Palau',
'PSE' => 'Palestinian Territory, Occupied',
'PAN' => 'Panama',
'PNG' => 'Papua New Guinea',
'PRY' => 'Paraguay',
'PER' => 'Peru',
'PHL' => 'Philippines',
'PCN' => 'Pitcairn',
'POL' => 'Poland',
'PRT' => 'Portugal',
'PRI' => 'Puerto Rico',
'QAT' => 'Qatar',
'REU' => 'Réunion',
'ROU' => 'Romania',
'RUS' => 'Russian Federation',
'RWA' => 'Rwanda',
'BLM' => 'Saint Barthélemy',
'SHN' => 'Saint Helena, Ascension and Tristan da Cunha',
'KNA' => 'Saint Kitts and Nevis',
'LCA' => 'Saint Lucia',
'MAF' => 'Saint Martin (French part)',
'SPM' => 'Saint Pierre and Miquelon',
'VCT' => 'Saint Vincent and the Grenadines',
'WSM' => 'Samoa',
'SMR' => 'San Marino',
'STP' => 'Sao Tome and Principe',
'SAU' => 'Saudi Arabia',
'SEN' => 'Senegal',
'SRB' => 'Serbia',
'SYC' => 'Seychelles',
'SLE' => 'Sierra Leone',
'SGP' => 'Singapore',
'SXM' => 'Sint Maarten (Dutch part)',
'SVK' => 'Slovakia',
'SVN' => 'Slovenia',
'SLB' => 'Solomon Islands',
'SOM' => 'Somalia',
'ZAF' => 'South Africa',
'SGS' => 'South Georgia and the South Sandwich Islands',
'SSD' => 'South Sudan',
'ESP' => 'Spain',
'LKA' => 'Sri Lanka',
'SDN' => 'Sudan',
'SUR' => 'Suriname',
'SJM' => 'Svalbard and Jan Mayen',
'SWZ' => 'Swaziland',
'SWE' => 'Sweden',
'CHE' => 'Switzerland',
'SYR' => 'Syrian Arab Republic',
'TWN' => 'Taiwan, Province of China',
'TJK' => 'Tajikistan',
'TZA' => 'Tanzania, United Republic of',
'THA' => 'Thailand',
'TLS' => 'Timor-Leste',
'TGO' => 'Togo',
'TKL' => 'Tokelau',
'TON' => 'Tonga',
'TTO' => 'Trinidad and Tobago',
'TUN' => 'Tunisia',
'TUR' => 'Turkey',
'TKM' => 'Turkmenistan',
'TCA' => 'Turks and Caicos Islands',
'TUV' => 'Tuvalu',
'UGA' => 'Uganda',
'UKR' => 'Ukraine',
'ARE' => 'United Arab Emirates',
'GBR' => 'United Kingdom',
'USA' => 'United States',
'UMI' => 'United States Minor Outlying Islands',
'URY' => 'Uruguay',
'UZB' => 'Uzbekistan',
'VUT' => 'Vanuatu',
'VEN' => 'Venezuela, Bolivarian Republic of',
'VNM' => 'Viet Nam',
'VGB' => 'Virgin Islands, British',
'VIR' => 'Virgin Islands, U.S.',
'WLF' => 'Wallis and Futuna',
'ESH' => 'Western Sahara',
'YEM' => 'Yemen',
'ZMB' => 'Zambia',
'ZWE' => 'Zimbabwe',
];
return $this->select($name, $list, $selected, $options);
}
/**
* @param $name
* @param null $selected
* @param array $options
*
* @return string
*/
public function selectCountryNumeric($name, $selected = null, $options = [])
{
$list = [
'' => 'Select One...',
'4' => 'Afghanistan',
'248' => 'Åland Islands',
'8' => 'Albania',
'12' => 'Algeria',
'16' => 'American Samoa',
'20' => 'Andorra',
'24' => 'Angola',
'660' => 'Anguilla',
'10' => 'Antarctica',
'28' => 'Antigua and Barbuda',
'32' => 'Argentina',
'51' => 'Armenia',
'533' => 'Aruba',
'36' => 'Australia',
'40' => 'Austria',
'31' => 'Azerbaijan',
'44' => 'Bahamas',
'48' => 'Bahrain',
'50' => 'Bangladesh',
'52' => 'Barbados',
'112' => 'Belarus',
'56' => 'Belgium',
'84' => 'Belize',
'204' => 'Benin',
'60' => 'Bermuda',
'64' => 'Bhutan',
'68' => 'Bolivia, Plurinational State of',
'535' => 'Bonaire, Sint Eustatius and Saba',
'70' => 'Bosnia and Herzegovina',
'72' => 'Botswana',
'74' => 'Bouvet Island',
'76' => 'Brazil',
'86' => 'British Indian Ocean Territory',
'96' => 'Brunei Darussalam',
'100' => 'Bulgaria',
'854' => 'Burkina Faso',
'108' => 'Burundi',
'116' => 'Cambodia',
'120' => 'Cameroon',
'124' => 'Canada',
'132' => 'Cape Verde',
'136' => 'Cayman Islands',
'140' => 'Central African Republic',
'148' => 'Chad',
'152' => 'Chile',
'156' => 'China',
'162' => 'Christmas Island',
'166' => 'Cocos (Keeling) Islands',
'170' => 'Colombia',
'174' => 'Comoros',
'178' => 'Congo',
'180' => 'Congo, the Democratic Republic of the',
'184' => 'Cook Islands',
'188' => 'Costa Rica',
'384' => 'Côte d\'Ivoire',
'191' => 'Croatia',
'192' => 'Cuba',
'531' => 'Curaçao',
'196' => 'Cyprus',
'203' => 'Czech Republic',
'208' => 'Denmark',
'262' => 'Djibouti',
'212' => 'Dominica',
'214' => 'Dominican Republic',
'218' => 'Ecuador',
'818' => 'Egypt',
'222' => 'El Salvador',
'226' => 'Equatorial Guinea',
'232' => 'Eritrea',
'233' => 'Estonia',
'231' => 'Ethiopia',
'238' => 'Falkland Islands (Malvinas)',
'234' => 'Faroe Islands',
'242' => 'Fiji',
'246' => 'Finland',
'250' => 'France',
'254' => 'French Guiana',
'258' => 'French Polynesia',
'260' => 'French Southern Territories',
'266' => 'Gabon',
'270' => 'Gambia',
'268' => 'Georgia',
'276' => 'Germany',
'288' => 'Ghana',
'292' => 'Gibraltar',
'300' => 'Greece',
'304' => 'Greenland',
'308' => 'Grenada',
'312' => 'Guadeloupe',
'316' => 'Guam',
'320' => 'Guatemala',
'831' => 'Guernsey',
'324' => 'Guinea',
'624' => 'Guinea-Bissau',
'328' => 'Guyana',
'332' => 'Haiti',
'334' => 'Heard Island and McDonald Islands',
'336' => 'Holy See (Vatican City State)',
'340' => 'Honduras',
'344' => 'Hong Kong',
'348' => 'Hungary',
'352' => 'Iceland',
'356' => 'India',
'360' => 'Indonesia',
'364' => 'Iran, Islamic Republic of',
'368' => 'Iraq',
'372' => 'Ireland',
'833' => 'Isle of Man',
'376' => 'Israel',
'380' => 'Italy',
'388' => 'Jamaica',
'392' => 'Japan',
'832' => 'Jersey',
'400' => 'Jordan',
'398' => 'Kazakhstan',
'404' => 'Kenya',
'296' => 'Kiribati',
'408' => 'Korea, Democratic People\'s Republic of',
'410' => 'Korea, Republic of',
'414' => 'Kuwait',
'417' => 'Kyrgyzstan',
'418' => 'Lao People\'s Democratic Republic',
'428' => 'Latvia',
'422' => 'Lebanon',
'426' => 'Lesotho',
'430' => 'Liberia',
'434' => 'Libya',
'438' => 'Liechtenstein',
'440' => 'Lithuania',
'442' => 'Luxembourg',
'446' => 'Macao',
'807' => 'Macedonia, the former Yugoslav Republic of',
'450' => 'Madagascar',
'454' => 'Malawi',
'458' => 'Malaysia',
'462' => 'Maldives',
'466' => 'Mali',
'470' => 'Malta',
'584' => 'Marshall Islands',
'474' => 'Martinique',
'478' => 'Mauritania',
'480' => 'Mauritius',
'175' => 'Mayotte',
'484' => 'Mexico',
'583' => 'Micronesia, Federated States of',
'498' => 'Moldova, Republic of',
'492' => 'Monaco',
'496' => 'Mongolia',
'499' => 'Montenegro',
'500' => 'Montserrat',
'504' => 'Morocco',
'508' => 'Mozambique',
'104' => 'Myanmar',
'516' => 'Namibia',
'520' => 'Nauru',
'524' => 'Nepal',
'528' => 'Netherlands',
'540' => 'New Caledonia',
'554' => 'New Zealand',
'558' => 'Nicaragua',
'562' => 'Niger',
'566' => 'Nigeria',
'570' => 'Niue',
'574' => 'Norfolk Island',
'580' => 'Northern Mariana Islands',
'578' => 'Norway',
'512' => 'Oman',
'586' => 'Pakistan',
'585' => 'Palau',
'275' => 'Palestinian Territory, Occupied',
'591' => 'Panama',
'598' => 'Papua New Guinea',
'600' => 'Paraguay',
'604' => 'Peru',
'608' => 'Philippines',
'612' => 'Pitcairn',
'616' => 'Poland',
'620' => 'Portugal',
'630' => 'Puerto Rico',
'634' => 'Qatar',
'638' => 'Réunion',
'642' => 'Romania',
'643' => 'Russian Federation',
'646' => 'Rwanda',
'652' => 'Saint Barthélemy',
'654' => 'Saint Helena, Ascension and Tristan da Cunha',
'659' => 'Saint Kitts and Nevis',
'662' => 'Saint Lucia',
'663' => 'Saint Martin (French part)',
'666' => 'Saint Pierre and Miquelon',
'670' => 'Saint Vincent and the Grenadines',
'882' => 'Samoa',
'674' => 'San Marino',
'678' => 'Sao Tome and Principe',
'682' => 'Saudi Arabia',
'686' => 'Senegal',
'688' => 'Serbia',
'690' => 'Seychelles',
'694' => 'Sierra Leone',
'702' => 'Singapore',
'534' => 'Sint Maarten (Dutch part)',
'703' => 'Slovakia',
'705' => 'Slovenia',
'90' => 'Solomon Islands',
'706' => 'Somalia',
'710' => 'South Africa',
'239' => 'South Georgia and the South Sandwich Islands',
'728' => 'South Sudan',
'724' => 'Spain',
'144' => 'Sri Lanka',
'729' => 'Sudan',
'740' => 'Suriname',
'744' => 'Svalbard and Jan Mayen',
'748' => 'Swaziland',
'752' => 'Sweden',
'756' => 'Switzerland',
'760' => 'Syrian Arab Republic',
'158' => 'Taiwan, Province of China',
'762' => 'Tajikistan',
'834' => 'Tanzania, United Republic of',
'764' => 'Thailand',
'626' => 'Timor-Leste',
'768' => 'Togo',
'772' => 'Tokelau',
'776' => 'Tonga',
'780' => 'Trinidad and Tobago',
'788' => 'Tunisia',
'792' => 'Turkey',
'795' => 'Turkmenistan',
'796' => 'Turks and Caicos Islands',
'798' => 'Tuvalu',
'800' => 'Uganda',
'804' => 'Ukraine',
'784' => 'United Arab Emirates',
'826' => 'United Kingdom',
'840' => 'United States',
'581' => 'United States Minor Outlying Islands',
'858' => 'Uruguay',
'860' => 'Uzbekistan',
'548' => 'Vanuatu',
'862' => 'Venezuela, Bolivarian Republic of',
'704' => 'Viet Nam',
'92' => 'Virgin Islands, British',
'850' => 'Virgin Islands, U.S.',
'876' => 'Wallis and Futuna',
'732' => 'Western Sahara',
'887' => 'Yemen',
'894' => 'Zambia',
'716' => 'Zimbabwe',
];
return $this->select($name, $list, $selected, $options);
}
/**
* @param $name
* @param null $selected
* @param array $options
*
* @return mixed
*/
public function selectTimezone($name, $selected = null, $options = [])
{
$list = [];
$utc = new \DateTimeZone('UTC');
$dt = new \DateTime('now', $utc);
foreach (\DateTimeZone::listIdentifiers() as $tz) {
$current_tz = new \DateTimeZone($tz);
$offset = $current_tz->getOffset($dt);
$transition = $current_tz->getTransitions($dt->getTimestamp(), $dt->getTimestamp());
$abbr = $transition[0]['abbr'];
$list[$tz] = $tz.' ['.$abbr.' '.$this->formatOffset($offset).']';
}
return $this->select($name, $list, $selected, $options);
}
/**
* @param $offset
*
* @return string
*/
private function formatOffset($offset)
{
$hours = $offset / 3600;
$remainder = $offset % 3600;
$sign = $hours > 0 ? '+' : '-';
$hour = (int) abs($hours);
$minutes = (int) abs($remainder / 60);
if ($hour == 0 && $minutes == 0) {
$sign = ' ';
}
return $sign.str_pad($hour, 2, '0', STR_PAD_LEFT).':'.str_pad($minutes, 2, '0');
}
}
<?php
/**
* Represents a universally unique identifier (UUID), according to RFC 4122.
*
* This class provides the static methods `uuid3()`, `uuid4()`, and
* `uuid5()` for generating version 3, 4, and 5 UUIDs as specified in RFC 4122.
*
* If all you want is a unique ID, you should call `uuid4()`.
*
* @link http://tools.ietf.org/html/rfc4122
* @link http://en.wikipedia.org/wiki/Universally_unique_identifier
* @link http://www.php.net/manual/en/function.uniqid.php#94959
*/
namespace App\Helpers;
class uuid
{
/**
* When this namespace is specified, the name string is a fully-qualified domain name.
*
* @link http://tools.ietf.org/html/rfc4122#appendix-C
*/
const NAMESPACE_DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';
/**
* When this namespace is specified, the name string is a URL.
*
* @link http://tools.ietf.org/html/rfc4122#appendix-C
*/
const NAMESPACE_URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';
/**
* When this namespace is specified, the name string is an ISO OID.
*
* @link http://tools.ietf.org/html/rfc4122#appendix-C
*/
const NAMESPACE_OID = '6ba7b812-9dad-11d1-80b4-00c04fd430c8';
/**
* When this namespace is specified, the name string is an X.500 DN in DER or a text output format.
*
* @link http://tools.ietf.org/html/rfc4122#appendix-C
*/
const NAMESPACE_X500 = '6ba7b814-9dad-11d1-80b4-00c04fd430c8';
/**
* The nil UUID is special form of UUID that is specified to have all 128 bits set to zero.
*
* @link http://tools.ietf.org/html/rfc4122#section-4.1.7
*/
const NIL = '00000000-0000-0000-0000-000000000000';
private static function getBytes($uuid)
{
if (!self::isValid($uuid)) {
throw new InvalidArgumentException('Invalid UUID string: '.$uuid);
}
// Get hexadecimal components of UUID
$uhex = str_replace([
'urn:',
'uuid:',
'-',
'{',
'}',
], '', $uuid);
// Binary Value
$ustr = '';
// Convert UUID to bits
for ($i = 0; $i < strlen($uhex); $i += 2) {
$ustr .= chr(hexdec($uhex[$i].$uhex[$i + 1]));
}
return $ustr;
}
private static function uuidFromHash($hash, $version)
{
return sprintf('%08s-%04s-%04x-%04x-%12s',
// 32 bits for "time_low"
substr($hash, 0, 8),
// 16 bits for "time_mid"
substr($hash, 8, 4),
// 16 bits for "time_hi_and_version",
// four most significant bits holds version number
(hexdec(substr($hash, 12, 4)) & 0x0fff) | $version << 12,
// 16 bits, 8 bits for "clk_seq_hi_res",
// 8 bits for "clk_seq_low",
// two most significant bits holds zero and one for variant DCE1.1
(hexdec(substr($hash, 16, 4)) & 0x3fff) | 0x8000,
// 48 bits for "node"
substr($hash, 20, 12));
}
/**
* Generate a version 3 UUID based on the MD5 hash of a namespace identifier
* (which is a UUID) and a name (which is a string).
*
* @param string $namespace The UUID namespace in which to create the named UUID
* @param string $name The name to create a UUID for
*
* @return string
*/
public static function uuid3($namespace, $name)
{
$nbytes = self::getBytes($namespace);
// Calculate hash value
$hash = md5($nbytes.$name);
return self::uuidFromHash($hash, 3);
}
/**
* Generate a version 4 (random) UUID.
*
* @return string
*/
public static function uuid4()
{
$bytes = function_exists('random_bytes') ? random_bytes(16) : openssl_random_pseudo_bytes(16);
$hash = bin2hex($bytes);
return self::uuidFromHash($hash, 4);
}
/**
* Generate a version 5 UUID based on the SHA-1 hash of a namespace
* identifier (which is a UUID) and a name (which is a string).
*
* @param string $namespace The UUID namespace in which to create the named UUID
* @param string $name The name to create a UUID for
*
* @return string
*/
public static function uuid5($namespace, $name)
{
$nbytes = self::getBytes($namespace);
// Calculate hash value
$hash = sha1($nbytes.$name);
return self::uuidFromHash($hash, 5);
}
/**
* Check if a string is a valid UUID.
*
* @param string $uuid The string UUID to test
*
* @return bool
*/
public static function isValid($uuid)
{
return preg_match('/^(urn:)?(uuid:)?(\{)?[0-9a-f]{8}\-?[0-9a-f]{4}\-?[0-9a-f]{4}\-?[0-9a-f]{4}\-?[0-9a-f]{12}(?(3)\}|)$/i', $uuid) === 1;
}
/**
* Check if two UUIDs are equal.
*
* @param string $uuid1 The first UUID to test
* @param string $uuid2 The second UUID to test
*
* @return bool
*/
public static function equals($uuid1, $uuid2)
{
return self::getBytes($uuid1) === self::getBytes($uuid2);
}
}
<?php
namespace App\Providers;
use App\Helpers\Macros\Macros;
use Collective\Html\HtmlServiceProvider;
/**
* Class MacroServiceProvider.
*/
class MacroServiceProvider extends HtmlServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
parent::register();
$this->app->singleton('form', function ($app) {
$form = new Macros($app['html'], $app['url'], $app['view'], $app['session.store']->token());
return $form->setSessionStore($app['session.store']);
});
}
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "47881206fa716e06d6d48b9a4881de4e", "content-hash": "529102fbc0fdd6142c7a86d0c99443c6",
"packages": [ "packages": [
{ {
"name": "arcanedev/log-viewer", "name": "arcanedev/log-viewer",
...@@ -623,16 +623,16 @@ ...@@ -623,16 +623,16 @@
}, },
{ {
"name": "doctrine/dbal", "name": "doctrine/dbal",
"version": "v2.7.0", "version": "v2.7.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/dbal.git", "url": "https://github.com/doctrine/dbal.git",
"reference": "f76bf5ef631cec551a86c2291fc749534febebf1" "reference": "11037b4352c008373561dc6fc836834eed80c3b5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/f76bf5ef631cec551a86c2291fc749534febebf1", "url": "https://api.github.com/repos/doctrine/dbal/zipball/11037b4352c008373561dc6fc836834eed80c3b5",
"reference": "f76bf5ef631cec551a86c2291fc749534febebf1", "reference": "11037b4352c008373561dc6fc836834eed80c3b5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -694,7 +694,7 @@ ...@@ -694,7 +694,7 @@
"persistence", "persistence",
"queryobject" "queryobject"
], ],
"time": "2018-04-01T23:33:17+00:00" "time": "2018-04-07T18:44:18+00:00"
}, },
{ {
"name": "doctrine/inflector", "name": "doctrine/inflector",
...@@ -819,23 +819,23 @@ ...@@ -819,23 +819,23 @@
}, },
{ {
"name": "dragonmantank/cron-expression", "name": "dragonmantank/cron-expression",
"version": "v2.0.0", "version": "v2.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/dragonmantank/cron-expression.git", "url": "https://github.com/dragonmantank/cron-expression.git",
"reference": "8a84aee649c3a3ba03a721c1fb080e08dfbcd68b" "reference": "3f00985deec8df53d4cc1e5c33619bda1ee309a5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/8a84aee649c3a3ba03a721c1fb080e08dfbcd68b", "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/3f00985deec8df53d4cc1e5c33619bda1ee309a5",
"reference": "8a84aee649c3a3ba03a721c1fb080e08dfbcd68b", "reference": "3f00985deec8df53d4cc1e5c33619bda1ee309a5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.0.0" "php": ">=7.0.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "~5.7" "phpunit/phpunit": "~6.4"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
...@@ -864,20 +864,20 @@ ...@@ -864,20 +864,20 @@
"cron", "cron",
"schedule" "schedule"
], ],
"time": "2017-10-12T15:59:13+00:00" "time": "2018-04-06T15:51:55+00:00"
}, },
{ {
"name": "egulias/email-validator", "name": "egulias/email-validator",
"version": "2.1.3", "version": "2.1.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/egulias/EmailValidator.git", "url": "https://github.com/egulias/EmailValidator.git",
"reference": "1bec00a10039b823cc94eef4eddd47dcd3b2ca04" "reference": "8790f594151ca6a2010c6218e09d96df67173ad3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/1bec00a10039b823cc94eef4eddd47dcd3b2ca04", "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/8790f594151ca6a2010c6218e09d96df67173ad3",
"reference": "1bec00a10039b823cc94eef4eddd47dcd3b2ca04", "reference": "8790f594151ca6a2010c6218e09d96df67173ad3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -886,7 +886,7 @@ ...@@ -886,7 +886,7 @@
}, },
"require-dev": { "require-dev": {
"dominicsayers/isemail": "dev-master", "dominicsayers/isemail": "dev-master",
"phpunit/phpunit": "^4.8.35", "phpunit/phpunit": "^4.8.35||^5.7||^6.0",
"satooshi/php-coveralls": "^1.0.1" "satooshi/php-coveralls": "^1.0.1"
}, },
"suggest": { "suggest": {
...@@ -921,7 +921,7 @@ ...@@ -921,7 +921,7 @@
"validation", "validation",
"validator" "validator"
], ],
"time": "2017-11-15T23:40:40+00:00" "time": "2018-04-10T10:11:19+00:00"
}, },
{ {
"name": "erusev/parsedown", "name": "erusev/parsedown",
...@@ -1426,16 +1426,16 @@ ...@@ -1426,16 +1426,16 @@
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v5.6.15", "version": "v5.6.17",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/framework.git", "url": "https://github.com/laravel/framework.git",
"reference": "baa42cf6bdd942523fafece21ec16a1843c6db0f" "reference": "0f787c763ae8fb9fae0c8c809830ba4fa81e2d9d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/baa42cf6bdd942523fafece21ec16a1843c6db0f", "url": "https://api.github.com/repos/laravel/framework/zipball/0f787c763ae8fb9fae0c8c809830ba4fa81e2d9d",
"reference": "baa42cf6bdd942523fafece21ec16a1843c6db0f", "reference": "0f787c763ae8fb9fae0c8c809830ba4fa81e2d9d",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1446,7 +1446,7 @@ ...@@ -1446,7 +1446,7 @@
"ext-openssl": "*", "ext-openssl": "*",
"league/flysystem": "^1.0.8", "league/flysystem": "^1.0.8",
"monolog/monolog": "~1.12", "monolog/monolog": "~1.12",
"nesbot/carbon": "^1.24.1", "nesbot/carbon": "1.25.*",
"php": "^7.1.3", "php": "^7.1.3",
"psr/container": "~1.0", "psr/container": "~1.0",
"psr/simple-cache": "^1.0", "psr/simple-cache": "^1.0",
...@@ -1500,6 +1500,7 @@ ...@@ -1500,6 +1500,7 @@
"aws/aws-sdk-php": "~3.0", "aws/aws-sdk-php": "~3.0",
"doctrine/dbal": "~2.6", "doctrine/dbal": "~2.6",
"filp/whoops": "^2.1.4", "filp/whoops": "^2.1.4",
"league/flysystem-cached-adapter": "~1.0",
"mockery/mockery": "~1.0", "mockery/mockery": "~1.0",
"moontoast/math": "^1.1", "moontoast/math": "^1.1",
"orchestra/testbench-core": "3.6.*", "orchestra/testbench-core": "3.6.*",
...@@ -1518,7 +1519,7 @@ ...@@ -1518,7 +1519,7 @@
"guzzlehttp/guzzle": "Required to use the Mailgun and Mandrill mail drivers and the ping methods on schedules (~6.0).", "guzzlehttp/guzzle": "Required to use the Mailgun and Mandrill mail drivers and the ping methods on schedules (~6.0).",
"laravel/tinker": "Required to use the tinker console command (~1.0).", "laravel/tinker": "Required to use the tinker console command (~1.0).",
"league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).", "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (~1.0).",
"league/flysystem-cached-adapter": "Required to use Flysystem caching (~1.0).", "league/flysystem-cached-adapter": "Required to use the Flysystem cache (~1.0).",
"league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0).", "league/flysystem-rackspace": "Required to use the Flysystem Rackspace driver (~1.0).",
"league/flysystem-sftp": "Required to use the Flysystem SFTP driver (~1.0).", "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (~1.0).",
"nexmo/client": "Required to use the Nexmo transport (~1.0).", "nexmo/client": "Required to use the Nexmo transport (~1.0).",
...@@ -1560,7 +1561,7 @@ ...@@ -1560,7 +1561,7 @@
"framework", "framework",
"laravel" "laravel"
], ],
"time": "2018-03-30T13:29:58+00:00" "time": "2018-04-17T12:51:04+00:00"
}, },
{ {
"name": "laravel/socialite", "name": "laravel/socialite",
...@@ -1626,16 +1627,16 @@ ...@@ -1626,16 +1627,16 @@
}, },
{ {
"name": "laravel/tinker", "name": "laravel/tinker",
"version": "v1.0.5", "version": "v1.0.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/tinker.git", "url": "https://github.com/laravel/tinker.git",
"reference": "94f6daf2131508cebd11cd6f8632ba586d7ecc41" "reference": "b22fe905fcefdffae76b011e27c7ac09e07e052b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/tinker/zipball/94f6daf2131508cebd11cd6f8632ba586d7ecc41", "url": "https://api.github.com/repos/laravel/tinker/zipball/b22fe905fcefdffae76b011e27c7ac09e07e052b",
"reference": "94f6daf2131508cebd11cd6f8632ba586d7ecc41", "reference": "b22fe905fcefdffae76b011e27c7ac09e07e052b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1643,7 +1644,7 @@ ...@@ -1643,7 +1644,7 @@
"illuminate/contracts": "~5.1", "illuminate/contracts": "~5.1",
"illuminate/support": "~5.1", "illuminate/support": "~5.1",
"php": ">=5.5.9", "php": ">=5.5.9",
"psy/psysh": "0.7.*|0.8.*", "psy/psysh": "0.7.*|0.8.*|0.9.*",
"symfony/var-dumper": "~3.0|~4.0" "symfony/var-dumper": "~3.0|~4.0"
}, },
"require-dev": { "require-dev": {
...@@ -1685,20 +1686,20 @@ ...@@ -1685,20 +1686,20 @@
"laravel", "laravel",
"psysh" "psysh"
], ],
"time": "2018-03-06T17:34:36+00:00" "time": "2018-04-16T12:10:37+00:00"
}, },
{ {
"name": "laravelcollective/html", "name": "laravelcollective/html",
"version": "v5.6.5", "version": "v5.6.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/LaravelCollective/html.git", "url": "https://github.com/LaravelCollective/html.git",
"reference": "623a150c91e2d3f92eeee9f9eda58a841e3cb548" "reference": "b3a10245c791a211e5f8ec37117f4549cd22aabe"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/LaravelCollective/html/zipball/623a150c91e2d3f92eeee9f9eda58a841e3cb548", "url": "https://api.github.com/repos/LaravelCollective/html/zipball/b3a10245c791a211e5f8ec37117f4549cd22aabe",
"reference": "623a150c91e2d3f92eeee9f9eda58a841e3cb548", "reference": "b3a10245c791a211e5f8ec37117f4549cd22aabe",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1753,7 +1754,7 @@ ...@@ -1753,7 +1754,7 @@
], ],
"description": "HTML and Form Builders for the Laravel Framework", "description": "HTML and Form Builders for the Laravel Framework",
"homepage": "https://laravelcollective.com", "homepage": "https://laravelcollective.com",
"time": "2018-03-16T16:57:31+00:00" "time": "2018-04-09T14:09:32+00:00"
}, },
{ {
"name": "lcobucci/jwt", "name": "lcobucci/jwt",
...@@ -1815,16 +1816,16 @@ ...@@ -1815,16 +1816,16 @@
}, },
{ {
"name": "league/flysystem", "name": "league/flysystem",
"version": "1.0.43", "version": "1.0.44",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/flysystem.git", "url": "https://github.com/thephpleague/flysystem.git",
"reference": "1ce7cc142d906ba58dc54c82915d355a9191c8a8" "reference": "168dbe519737221dc87d17385cde33073881fd02"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/1ce7cc142d906ba58dc54c82915d355a9191c8a8", "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/168dbe519737221dc87d17385cde33073881fd02",
"reference": "1ce7cc142d906ba58dc54c82915d355a9191c8a8", "reference": "168dbe519737221dc87d17385cde33073881fd02",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -1895,7 +1896,7 @@ ...@@ -1895,7 +1896,7 @@
"sftp", "sftp",
"storage" "storage"
], ],
"time": "2018-03-01T10:27:04+00:00" "time": "2018-04-06T09:58:14+00:00"
}, },
{ {
"name": "league/oauth1-client", "name": "league/oauth1-client",
...@@ -2156,24 +2157,24 @@ ...@@ -2156,24 +2157,24 @@
}, },
{ {
"name": "nikic/php-parser", "name": "nikic/php-parser",
"version": "v3.1.5", "version": "v4.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nikic/PHP-Parser.git", "url": "https://github.com/nikic/PHP-Parser.git",
"reference": "bb87e28e7d7b8d9a7fda231d37457c9210faf6ce" "reference": "e4a54fa90a5cd8e8dd3fb4099942681731c5cdd3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/bb87e28e7d7b8d9a7fda231d37457c9210faf6ce", "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/e4a54fa90a5cd8e8dd3fb4099942681731c5cdd3",
"reference": "bb87e28e7d7b8d9a7fda231d37457c9210faf6ce", "reference": "e4a54fa90a5cd8e8dd3fb4099942681731c5cdd3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-tokenizer": "*", "ext-tokenizer": "*",
"php": ">=5.5" "php": ">=7.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "~4.0|~5.0" "phpunit/phpunit": "^6.5 || ^7.0"
}, },
"bin": [ "bin": [
"bin/php-parse" "bin/php-parse"
...@@ -2181,7 +2182,7 @@ ...@@ -2181,7 +2182,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "3.0-dev" "dev-master": "4.0-dev"
} }
}, },
"autoload": { "autoload": {
...@@ -2203,20 +2204,20 @@ ...@@ -2203,20 +2204,20 @@
"parser", "parser",
"php" "php"
], ],
"time": "2018-02-28T20:30:58+00:00" "time": "2018-03-25T17:35:16+00:00"
}, },
{ {
"name": "paragonie/random_compat", "name": "paragonie/random_compat",
"version": "v2.0.11", "version": "v2.0.12",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/paragonie/random_compat.git", "url": "https://github.com/paragonie/random_compat.git",
"reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8" "reference": "258c89a6b97de7dfaf5b8c7607d0478e236b04fb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/5da4d3c796c275c55f057af5a643ae297d96b4d8", "url": "https://api.github.com/repos/paragonie/random_compat/zipball/258c89a6b97de7dfaf5b8c7607d0478e236b04fb",
"reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8", "reference": "258c89a6b97de7dfaf5b8c7607d0478e236b04fb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -2251,7 +2252,7 @@ ...@@ -2251,7 +2252,7 @@
"pseudorandom", "pseudorandom",
"random" "random"
], ],
"time": "2017-09-27T21:40:39+00:00" "time": "2018-04-04T21:24:14+00:00"
}, },
{ {
"name": "psr/container", "name": "psr/container",
...@@ -2449,29 +2450,29 @@ ...@@ -2449,29 +2450,29 @@
}, },
{ {
"name": "psy/psysh", "name": "psy/psysh",
"version": "v0.8.18", "version": "v0.9.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/bobthecow/psysh.git", "url": "https://github.com/bobthecow/psysh.git",
"reference": "5357b1cffc8fb375d6a9e3c86d5c82dd38a40834" "reference": "79c280013cf0b30fa23f3ba8bd3649218075adf4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/5357b1cffc8fb375d6a9e3c86d5c82dd38a40834", "url": "https://api.github.com/repos/bobthecow/psysh/zipball/79c280013cf0b30fa23f3ba8bd3649218075adf4",
"reference": "5357b1cffc8fb375d6a9e3c86d5c82dd38a40834", "reference": "79c280013cf0b30fa23f3ba8bd3649218075adf4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"dnoegel/php-xdg-base-dir": "0.1", "dnoegel/php-xdg-base-dir": "0.1",
"jakub-onderka/php-console-highlighter": "0.3.*", "jakub-onderka/php-console-highlighter": "0.3.*",
"nikic/php-parser": "~1.3|~2.0|~3.0", "nikic/php-parser": "~1.3|~2.0|~3.0|~4.0",
"php": ">=5.3.9", "php": ">=5.4.0",
"symfony/console": "~2.3.10|^2.4.2|~3.0|~4.0", "symfony/console": "~2.3.10|^2.4.2|~3.0|~4.0",
"symfony/var-dumper": "~2.7|~3.0|~4.0" "symfony/var-dumper": "~2.7|~3.0|~4.0"
}, },
"require-dev": { "require-dev": {
"hoa/console": "~3.16|~1.14", "hoa/console": "~2.15|~3.16",
"phpunit/phpunit": "^4.8.35|^5.4.3", "phpunit/phpunit": "~4.8.35|~5.0|~6.0|~7.0",
"symfony/finder": "~2.1|~3.0|~4.0" "symfony/finder": "~2.1|~3.0|~4.0"
}, },
"suggest": { "suggest": {
...@@ -2487,15 +2488,15 @@ ...@@ -2487,15 +2488,15 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-develop": "0.8.x-dev" "dev-develop": "0.9.x-dev"
} }
}, },
"autoload": { "autoload": {
"files": [ "files": [
"src/Psy/functions.php" "src/functions.php"
], ],
"psr-4": { "psr-4": {
"Psy\\": "src/Psy/" "Psy\\": "src/"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
...@@ -2517,7 +2518,7 @@ ...@@ -2517,7 +2518,7 @@
"interactive", "interactive",
"shell" "shell"
], ],
"time": "2018-04-02T05:41:44+00:00" "time": "2018-04-18T12:32:50+00:00"
}, },
{ {
"name": "ramsey/uuid", "name": "ramsey/uuid",
...@@ -2715,7 +2716,7 @@ ...@@ -2715,7 +2716,7 @@
}, },
{ {
"name": "symfony/console", "name": "symfony/console",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/console.git", "url": "https://github.com/symfony/console.git",
...@@ -2783,7 +2784,7 @@ ...@@ -2783,7 +2784,7 @@
}, },
{ {
"name": "symfony/css-selector", "name": "symfony/css-selector",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/css-selector.git", "url": "https://github.com/symfony/css-selector.git",
...@@ -2836,7 +2837,7 @@ ...@@ -2836,7 +2837,7 @@
}, },
{ {
"name": "symfony/debug", "name": "symfony/debug",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/debug.git", "url": "https://github.com/symfony/debug.git",
...@@ -2892,16 +2893,16 @@ ...@@ -2892,16 +2893,16 @@
}, },
{ {
"name": "symfony/event-dispatcher", "name": "symfony/event-dispatcher",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/event-dispatcher.git", "url": "https://github.com/symfony/event-dispatcher.git",
"reference": "85eaf6a8ec915487abac52e133efc4a268204428" "reference": "63353a71073faf08f62caab4e6889b06a787f07b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/85eaf6a8ec915487abac52e133efc4a268204428", "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/63353a71073faf08f62caab4e6889b06a787f07b",
"reference": "85eaf6a8ec915487abac52e133efc4a268204428", "reference": "63353a71073faf08f62caab4e6889b06a787f07b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -2951,20 +2952,20 @@ ...@@ -2951,20 +2952,20 @@
], ],
"description": "Symfony EventDispatcher Component", "description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2018-02-14T14:11:10+00:00" "time": "2018-04-06T07:35:43+00:00"
}, },
{ {
"name": "symfony/finder", "name": "symfony/finder",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/finder.git", "url": "https://github.com/symfony/finder.git",
"reference": "c72995d9f5999b3fcdd8660c0c9690243252e1e1" "reference": "ca27c02b7a3fef4828c998c2ff9ba7aae1641c49"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/c72995d9f5999b3fcdd8660c0c9690243252e1e1", "url": "https://api.github.com/repos/symfony/finder/zipball/ca27c02b7a3fef4828c998c2ff9ba7aae1641c49",
"reference": "c72995d9f5999b3fcdd8660c0c9690243252e1e1", "reference": "ca27c02b7a3fef4828c998c2ff9ba7aae1641c49",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -3000,11 +3001,11 @@ ...@@ -3000,11 +3001,11 @@
], ],
"description": "Symfony Finder Component", "description": "Symfony Finder Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2018-04-02T09:52:41+00:00" "time": "2018-04-04T05:10:37+00:00"
}, },
{ {
"name": "symfony/http-foundation", "name": "symfony/http-foundation",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-foundation.git", "url": "https://github.com/symfony/http-foundation.git",
...@@ -3057,16 +3058,16 @@ ...@@ -3057,16 +3058,16 @@
}, },
{ {
"name": "symfony/http-kernel", "name": "symfony/http-kernel",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-kernel.git", "url": "https://github.com/symfony/http-kernel.git",
"reference": "38337d03a554a2b0e9f553d368723692b7c04a8f" "reference": "6dd620d96d64456075536ffe3c6c4658dd689021"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/38337d03a554a2b0e9f553d368723692b7c04a8f", "url": "https://api.github.com/repos/symfony/http-kernel/zipball/6dd620d96d64456075536ffe3c6c4658dd689021",
"reference": "38337d03a554a2b0e9f553d368723692b7c04a8f", "reference": "6dd620d96d64456075536ffe3c6c4658dd689021",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -3139,7 +3140,7 @@ ...@@ -3139,7 +3140,7 @@
], ],
"description": "Symfony HttpKernel Component", "description": "Symfony HttpKernel Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2018-04-03T06:20:33+00:00" "time": "2018-04-06T16:25:03+00:00"
}, },
{ {
"name": "symfony/polyfill-mbstring", "name": "symfony/polyfill-mbstring",
...@@ -3365,7 +3366,7 @@ ...@@ -3365,7 +3366,7 @@
}, },
{ {
"name": "symfony/process", "name": "symfony/process",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/process.git", "url": "https://github.com/symfony/process.git",
...@@ -3414,16 +3415,16 @@ ...@@ -3414,16 +3415,16 @@
}, },
{ {
"name": "symfony/routing", "name": "symfony/routing",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/routing.git", "url": "https://github.com/symfony/routing.git",
"reference": "ca780c838046bfef4a6fd50284ae71a5d1f1a8b2" "reference": "0663036dd57dbfd4e9ff29f75bbd5dd3253ebe71"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/routing/zipball/ca780c838046bfef4a6fd50284ae71a5d1f1a8b2", "url": "https://api.github.com/repos/symfony/routing/zipball/0663036dd57dbfd4e9ff29f75bbd5dd3253ebe71",
"reference": "ca780c838046bfef4a6fd50284ae71a5d1f1a8b2", "reference": "0663036dd57dbfd4e9ff29f75bbd5dd3253ebe71",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -3488,11 +3489,11 @@ ...@@ -3488,11 +3489,11 @@
"uri", "uri",
"url" "url"
], ],
"time": "2018-04-02T09:52:41+00:00" "time": "2018-04-04T13:50:32+00:00"
}, },
{ {
"name": "symfony/translation", "name": "symfony/translation",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/translation.git", "url": "https://github.com/symfony/translation.git",
...@@ -3560,16 +3561,16 @@ ...@@ -3560,16 +3561,16 @@
}, },
{ {
"name": "symfony/var-dumper", "name": "symfony/var-dumper",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/var-dumper.git", "url": "https://github.com/symfony/var-dumper.git",
"reference": "f9b257f2009c7f09166bcfd3d3d96455741ed371" "reference": "e1b4d008100f4d203cc38b0d793ad6252d8d8af0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/f9b257f2009c7f09166bcfd3d3d96455741ed371", "url": "https://api.github.com/repos/symfony/var-dumper/zipball/e1b4d008100f4d203cc38b0d793ad6252d8d8af0",
"reference": "f9b257f2009c7f09166bcfd3d3d96455741ed371", "reference": "e1b4d008100f4d203cc38b0d793ad6252d8d8af0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -3625,7 +3626,7 @@ ...@@ -3625,7 +3626,7 @@
"debug", "debug",
"dump" "dump"
], ],
"time": "2018-04-03T05:24:00+00:00" "time": "2018-04-04T05:10:37+00:00"
}, },
{ {
"name": "tijsverkoyen/css-to-inline-styles", "name": "tijsverkoyen/css-to-inline-styles",
...@@ -3875,16 +3876,16 @@ ...@@ -3875,16 +3876,16 @@
}, },
{ {
"name": "yajra/laravel-datatables-oracle", "name": "yajra/laravel-datatables-oracle",
"version": "v8.4.2", "version": "v8.4.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/yajra/laravel-datatables.git", "url": "https://github.com/yajra/laravel-datatables.git",
"reference": "eab6cc583ae778d056c5caf21b70db803d956e14" "reference": "9a87175e5ca02627aec98ec767fce5f5cbc98177"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/yajra/laravel-datatables/zipball/eab6cc583ae778d056c5caf21b70db803d956e14", "url": "https://api.github.com/repos/yajra/laravel-datatables/zipball/9a87175e5ca02627aec98ec767fce5f5cbc98177",
"reference": "eab6cc583ae778d056c5caf21b70db803d956e14", "reference": "9a87175e5ca02627aec98ec767fce5f5cbc98177",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -3942,7 +3943,7 @@ ...@@ -3942,7 +3943,7 @@
"jquery", "jquery",
"laravel" "laravel"
], ],
"time": "2018-03-28T16:31:13+00:00" "time": "2018-04-05T14:51:57+00:00"
} }
], ],
"packages-dev": [ "packages-dev": [
...@@ -4016,16 +4017,16 @@ ...@@ -4016,16 +4017,16 @@
}, },
{ {
"name": "bvipul/generator", "name": "bvipul/generator",
"version": "0.9.3", "version": "dev-master",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/bvipul/generator.git", "url": "https://github.com/bvipul/generator.git",
"reference": "9aa7d1aa9c2c748fa3890ab25628ea2cd7042103" "reference": "18b79a924aa40ee0c199c0cd65a454db1be55d42"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/bvipul/generator/zipball/9aa7d1aa9c2c748fa3890ab25628ea2cd7042103", "url": "https://api.github.com/repos/bvipul/generator/zipball/18b79a924aa40ee0c199c0cd65a454db1be55d42",
"reference": "9aa7d1aa9c2c748fa3890ab25628ea2cd7042103", "reference": "18b79a924aa40ee0c199c0cd65a454db1be55d42",
"shasum": "" "shasum": ""
}, },
"type": "package", "type": "package",
...@@ -4045,7 +4046,7 @@ ...@@ -4045,7 +4046,7 @@
} }
], ],
"description": "To create a whole module with all related files like model, controller, repository, routes, views etc with a simple GUI.", "description": "To create a whole module with all related files like model, controller, repository, routes, views etc with a simple GUI.",
"time": "2017-12-16T18:48:20+00:00" "time": "2018-04-13T17:56:21+00:00"
}, },
{ {
"name": "codedungeon/phpunit-result-printer", "name": "codedungeon/phpunit-result-printer",
...@@ -4838,23 +4839,23 @@ ...@@ -4838,23 +4839,23 @@
}, },
{ {
"name": "phpspec/prophecy", "name": "phpspec/prophecy",
"version": "1.7.5", "version": "1.7.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpspec/prophecy.git", "url": "https://github.com/phpspec/prophecy.git",
"reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401" "reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpspec/prophecy/zipball/dfd6be44111a7c41c2e884a336cc4f461b3b2401", "url": "https://api.github.com/repos/phpspec/prophecy/zipball/33a7e3c4fda54e912ff6338c48823bd5c0f0b712",
"reference": "dfd6be44111a7c41c2e884a336cc4f461b3b2401", "reference": "33a7e3c4fda54e912ff6338c48823bd5c0f0b712",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"doctrine/instantiator": "^1.0.2", "doctrine/instantiator": "^1.0.2",
"php": "^5.3|^7.0", "php": "^5.3|^7.0",
"phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0", "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0",
"sebastian/comparator": "^1.1|^2.0", "sebastian/comparator": "^1.1|^2.0|^3.0",
"sebastian/recursion-context": "^1.0|^2.0|^3.0" "sebastian/recursion-context": "^1.0|^2.0|^3.0"
}, },
"require-dev": { "require-dev": {
...@@ -4897,20 +4898,20 @@ ...@@ -4897,20 +4898,20 @@
"spy", "spy",
"stub" "stub"
], ],
"time": "2018-02-19T10:16:54+00:00" "time": "2018-04-18T13:57:24+00:00"
}, },
{ {
"name": "phpunit/php-code-coverage", "name": "phpunit/php-code-coverage",
"version": "6.0.1", "version": "6.0.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "f8ca4b604baf23dab89d87773c28cc07405189ba" "reference": "774a82c0c5da4c1c7701790c262035d235ab7856"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f8ca4b604baf23dab89d87773c28cc07405189ba", "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/774a82c0c5da4c1c7701790c262035d235ab7856",
"reference": "f8ca4b604baf23dab89d87773c28cc07405189ba", "reference": "774a82c0c5da4c1c7701790c262035d235ab7856",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -4921,7 +4922,7 @@ ...@@ -4921,7 +4922,7 @@
"phpunit/php-text-template": "^1.2.1", "phpunit/php-text-template": "^1.2.1",
"phpunit/php-token-stream": "^3.0", "phpunit/php-token-stream": "^3.0",
"sebastian/code-unit-reverse-lookup": "^1.0.1", "sebastian/code-unit-reverse-lookup": "^1.0.1",
"sebastian/environment": "^3.0", "sebastian/environment": "^3.1",
"sebastian/version": "^2.0.1", "sebastian/version": "^2.0.1",
"theseer/tokenizer": "^1.1" "theseer/tokenizer": "^1.1"
}, },
...@@ -4960,7 +4961,7 @@ ...@@ -4960,7 +4961,7 @@
"testing", "testing",
"xunit" "xunit"
], ],
"time": "2018-02-02T07:01:41+00:00" "time": "2018-04-06T15:39:20+00:00"
}, },
{ {
"name": "phpunit/php-file-iterator", "name": "phpunit/php-file-iterator",
...@@ -5150,16 +5151,16 @@ ...@@ -5150,16 +5151,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "7.0.3", "version": "7.1.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "536f4d853c12d8189963435088e8ff7c0daeab2e" "reference": "6d51299e307dc510149e0b7cd1931dd11770e1cb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/536f4d853c12d8189963435088e8ff7c0daeab2e", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/6d51299e307dc510149e0b7cd1931dd11770e1cb",
"reference": "536f4d853c12d8189963435088e8ff7c0daeab2e", "reference": "6d51299e307dc510149e0b7cd1931dd11770e1cb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -5177,8 +5178,8 @@ ...@@ -5177,8 +5178,8 @@
"phpunit/php-file-iterator": "^1.4.3", "phpunit/php-file-iterator": "^1.4.3",
"phpunit/php-text-template": "^1.2.1", "phpunit/php-text-template": "^1.2.1",
"phpunit/php-timer": "^2.0", "phpunit/php-timer": "^2.0",
"phpunit/phpunit-mock-objects": "^6.0", "phpunit/phpunit-mock-objects": "^6.1.1",
"sebastian/comparator": "^2.1", "sebastian/comparator": "^2.1 || ^3.0",
"sebastian/diff": "^3.0", "sebastian/diff": "^3.0",
"sebastian/environment": "^3.1", "sebastian/environment": "^3.1",
"sebastian/exporter": "^3.1", "sebastian/exporter": "^3.1",
...@@ -5200,7 +5201,7 @@ ...@@ -5200,7 +5201,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "7.0-dev" "dev-master": "7.1-dev"
} }
}, },
"autoload": { "autoload": {
...@@ -5226,20 +5227,20 @@ ...@@ -5226,20 +5227,20 @@
"testing", "testing",
"xunit" "xunit"
], ],
"time": "2018-03-26T07:36:48+00:00" "time": "2018-04-18T13:41:53+00:00"
}, },
{ {
"name": "phpunit/phpunit-mock-objects", "name": "phpunit/phpunit-mock-objects",
"version": "6.0.1", "version": "6.1.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
"reference": "e3249dedc2d99259ccae6affbc2684eac37c2e53" "reference": "70c740bde8fd9ea9ea295be1cd875dd7b267e157"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/e3249dedc2d99259ccae6affbc2684eac37c2e53", "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/70c740bde8fd9ea9ea295be1cd875dd7b267e157",
"reference": "e3249dedc2d99259ccae6affbc2684eac37c2e53", "reference": "70c740bde8fd9ea9ea295be1cd875dd7b267e157",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
...@@ -5257,7 +5258,7 @@ ...@@ -5257,7 +5258,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "6.0.x-dev" "dev-master": "6.1-dev"
} }
}, },
"autoload": { "autoload": {
...@@ -5282,7 +5283,7 @@ ...@@ -5282,7 +5283,7 @@
"mock", "mock",
"xunit" "xunit"
], ],
"time": "2018-02-15T05:27:38+00:00" "time": "2018-04-11T04:50:36+00:00"
}, },
{ {
"name": "sebastian/code-unit-reverse-lookup", "name": "sebastian/code-unit-reverse-lookup",
...@@ -5331,30 +5332,30 @@ ...@@ -5331,30 +5332,30 @@
}, },
{ {
"name": "sebastian/comparator", "name": "sebastian/comparator",
"version": "2.1.3", "version": "3.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/comparator.git", "url": "https://github.com/sebastianbergmann/comparator.git",
"reference": "34369daee48eafb2651bea869b4b15d75ccc35f9" "reference": "ed5fd2281113729f1ebcc64d101ad66028aeb3d5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9", "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/ed5fd2281113729f1ebcc64d101ad66028aeb3d5",
"reference": "34369daee48eafb2651bea869b4b15d75ccc35f9", "reference": "ed5fd2281113729f1ebcc64d101ad66028aeb3d5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.0", "php": "^7.1",
"sebastian/diff": "^2.0 || ^3.0", "sebastian/diff": "^3.0",
"sebastian/exporter": "^3.1" "sebastian/exporter": "^3.1"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^6.4" "phpunit/phpunit": "^7.1"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.1.x-dev" "dev-master": "3.0-dev"
} }
}, },
"autoload": { "autoload": {
...@@ -5391,7 +5392,7 @@ ...@@ -5391,7 +5392,7 @@
"compare", "compare",
"equality" "equality"
], ],
"time": "2018-02-01T13:46:46+00:00" "time": "2018-04-18T13:33:00+00:00"
}, },
{ {
"name": "sebastian/diff", "name": "sebastian/diff",
...@@ -5849,7 +5850,7 @@ ...@@ -5849,7 +5850,7 @@
}, },
{ {
"name": "symfony/dom-crawler", "name": "symfony/dom-crawler",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/dom-crawler.git", "url": "https://github.com/symfony/dom-crawler.git",
...@@ -5905,7 +5906,7 @@ ...@@ -5905,7 +5906,7 @@
}, },
{ {
"name": "symfony/yaml", "name": "symfony/yaml",
"version": "v4.0.7", "version": "v4.0.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/yaml.git", "url": "https://github.com/symfony/yaml.git",
...@@ -6161,7 +6162,8 @@ ...@@ -6161,7 +6162,8 @@
"aliases": [], "aliases": [],
"minimum-stability": "stable", "minimum-stability": "stable",
"stability-flags": { "stability-flags": {
"tymon/jwt-auth": 20 "tymon/jwt-auth": 20,
"bvipul/generator": 20
}, },
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
......
...@@ -198,7 +198,6 @@ return [ ...@@ -198,7 +198,6 @@ return [
App\Providers\ComposerServiceProvider::class, App\Providers\ComposerServiceProvider::class,
App\Providers\EventServiceProvider::class, App\Providers\EventServiceProvider::class,
App\Providers\HistoryServiceProvider::class, App\Providers\HistoryServiceProvider::class,
App\Providers\MacroServiceProvider::class,
App\Providers\RouteServiceProvider::class, App\Providers\RouteServiceProvider::class,
Tymon\JWTAuth\Providers\LaravelServiceProvider::class, Tymon\JWTAuth\Providers\LaravelServiceProvider::class,
Bvipul\Generator\Provider\CrudGeneratorServiceProvider::class, Bvipul\Generator\Provider\CrudGeneratorServiceProvider::class,
......
//common functionalities for all the javascript featueres //common functionalities for all the javascript featueres
var Backend = {}; // common variable used in all the files of the backend var Backend = {}; // common variable used in all the files of the backend
(function (){ (function () {
Backend = { Backend = {
...@@ -54,11 +54,11 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -54,11 +54,11 @@ var Backend = {}; // common variable used in all the files of the backend
request = new ActiveXObject("Microsoft.XMLHTTP"); request = new ActiveXObject("Microsoft.XMLHTTP");
} }
request.open(method, url, true); request.open(method, url, true);
request.onloadstart = function() { request.onloadstart = function () {
loadingIcon.show(); loadingIcon.show();
}; };
request.onloadend = function() { request.onloadend = function () {
loadingIcon.hide(); loadingIcon.hide();
}; };
request.setRequestHeader('X-CSRF-TOKEN', csrf); request.setRequestHeader('X-CSRF-TOKEN', csrf);
...@@ -101,23 +101,21 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -101,23 +101,21 @@ var Backend = {}; // common variable used in all the files of the backend
* Pages * Pages
* *
*/ */
Pages: Pages: {
{
init: function () { init: function () {
Backend.tinyMCE.init(); Backend.tinyMCE.init();
}, },
}, },
/** /**
* Roles management * Roles management
*/ */
Roles: Roles: {
{
selectors: { selectors: {
associated: document.querySelector("select[name='associated_permissions']"), associated: document.querySelector("select[name='associated_permissions']"),
associated_container: document.getElementById("#available-permissions"), associated_container: document.getElementById("#available-permissions"),
}, },
init(page) { init: function (page) {
this.setSelectors(); this.setSelectors();
this.setRolepermission(page); this.setRolepermission(page);
this.addHandlers(); this.addHandlers();
...@@ -151,19 +149,18 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -151,19 +149,18 @@ var Backend = {}; // common variable used in all the files of the backend
}, },
/** /**
* Users management * Users management
* *
*/ */
Users: Users: {
{
selectors: { selectors: {
select2: jQuery(".select2"), select2: jQuery(".select2"),
getPremissionURL: "", getPremissionURL: "",
showPermission: document.querySelectorAll(".show-permissions") showPermission: document.querySelectorAll(".show-permissions")
}, },
init: function (page) { init: function (page) {
this.setSelectors(); this.setSelectors();
this.addHandlers(page); this.addHandlers(page);
}, },
setSelectors: function () { setSelectors: function () {
this.selectors.select2 = jQuery(".select2"); this.selectors.select2 = jQuery(".select2");
...@@ -174,8 +171,8 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -174,8 +171,8 @@ var Backend = {}; // common variable used in all the files of the backend
}, },
addHandlers: function (page) { addHandlers: function (page) {
/** /**
* This function is used to get clicked element role id and return required result * This function is used to get clicked element role id and return required result
*/ */
this.selectors.getRoleForPermissions.forEach(function (element) { this.selectors.getRoleForPermissions.forEach(function (element) {
element.onclick = function (event) { element.onclick = function (event) {
...@@ -218,8 +215,10 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -218,8 +215,10 @@ var Backend = {}; // common variable used in all the files of the backend
} }
}; };
Backend.Utils.ajaxrequest(Backend.Users.selectors.getPremissionURL, "post", { role_id: event.target.value }, Backend.Utils.csrf, callback); Backend.Utils.ajaxrequest(Backend.Users.selectors.getPremissionURL, "post", {
} role_id: event.target.value
}, Backend.Utils.csrf, callback);
};
}); });
if (page == "create") { if (page == "create") {
Backend.Users.selectors.Role3.click(); Backend.Users.selectors.Role3.click();
...@@ -229,7 +228,7 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -229,7 +228,7 @@ var Backend = {}; // common variable used in all the files of the backend
}, },
windowloadhandler: function () { windowloadhandler: function () {
// scripts to be handeled on user create and edit when window is laoaded // scripts to be handeled on user create and edit when window is laoaded
Backend.Users.selectors.showPermission.forEach(function (element) { Backend.Users.selectors.showPermission.forEach(function (element) {
element.onclick = function (event) { element.onclick = function (event) {
...@@ -253,12 +252,11 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -253,12 +252,11 @@ var Backend = {}; // common variable used in all the files of the backend
}, },
/** /**
* Users delete page * Users delete page
* *
*/ */
UserDeleted: UserDeleted: {
{
selectors: { selectors: {
AlldeletePerms: document.querySelectorAll("a[name='delete_user_perm']"), AlldeletePerms: document.querySelectorAll("a[name='delete_user_perm']"),
AllrestorePerms: document.querySelectorAll("a[name='restore_user']"), AllrestorePerms: document.querySelectorAll("a[name='restore_user']"),
...@@ -327,11 +325,10 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -327,11 +325,10 @@ var Backend = {}; // common variable used in all the files of the backend
}, },
/** /**
* Blog * Blog
* *
*/ */
Blog: Blog: {
{
selectors: { selectors: {
tags: jQuery(".tags"), tags: jQuery(".tags"),
categories: jQuery(".categories"), categories: jQuery(".categories"),
...@@ -377,15 +374,16 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -377,15 +374,16 @@ var Backend = {}; // common variable used in all the files of the backend
} }
}; };
Backend.Utils.ajaxrequest(Backend.Blog.selectors.GenerateSlugUrl, "post", { text: url }, Backend.Utils.csrf, callback); Backend.Utils.ajaxrequest(Backend.Blog.selectors.GenerateSlugUrl, "post", {
text: url
}, Backend.Utils.csrf, callback);
} }
}; };
} }
}, },
Menu: Menu: {
{
selectors: { selectors: {
menuItemContainer: jQuery("#menu-items"), menuItemContainer: jQuery("#menu-items"),
menuItemsData: jQuery(".menu-items-field"), menuItemsData: jQuery(".menu-items-field"),
...@@ -394,53 +392,51 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -394,53 +392,51 @@ var Backend = {}; // common variable used in all the files of the backend
document: jQuery("document"), document: jQuery("document"),
addCustomUrlForm: "#menu-add-custom-url", addCustomUrlForm: "#menu-add-custom-url",
addModuleToMenuButton: ".add-module-to-menu", addModuleToMenuButton: ".add-module-to-menu",
removeMenuItemButton : ".remove-menu-item", removeMenuItemButton: ".remove-menu-item",
editMenuItemButton : ".edit-menu-item", editMenuItemButton: ".edit-menu-item",
formUrl: "", formUrl: "",
}, },
methods: { methods: {
getNewId : function(str) { getNewId: function (str) {
var arr = str.match(/"id":[0-9]+/gi); var arr = str.match(/"id":[0-9]+/gi);
if(arr) { if (arr) {
$.each(arr, function(index, item) { $.each(arr, function (index, item) {
arr[index] = parseInt(item.replace('"id":', '')); arr[index] = parseInt(item.replace('"id":', ''));
}); });
return Math.max.apply(Math, arr) + 1; return Math.max.apply(Math, arr) + 1;
} }
return 1; return 1;
}, },
findItemById : function(item, id) { findItemById: function (item, id) {
if(item.id == id) { if (item.id == id) {
return item; return item;
} }
var found = false; var found = false;
var foundItem; var foundItem;
if(item.children){ if (item.children) {
$.each(item.children, function(index, childItem){ $.each(item.children, function (index, childItem) {
foundItem = Backend.Menu.methods.findItemById(childItem, id); foundItem = Backend.Menu.methods.findItemById(childItem, id);
if(foundItem) if (foundItem) {
{
found = true; found = true;
return false; return false;
} }
}); });
} }
if(found) if (found) {
{
return foundItem; return foundItem;
} }
return null; return null;
}, },
addMenuItem : function(obj) { addMenuItem: function (obj) {
Backend.Menu.selectors.menuItemContainer.nestable('add', { Backend.Menu.selectors.menuItemContainer.nestable('add', {
"id": Backend.Menu.methods.getNewId(Backend.Menu.selectors.menuItemsData.val()), "id": Backend.Menu.methods.getNewId(Backend.Menu.selectors.menuItemsData.val()),
"content": obj.name, "content": obj.name,
"name": obj.name, "name": obj.name,
"url": obj.url, "url": obj.url,
"url_type" : obj.url_type, "url_type": obj.url_type,
"open_in_new_tab": obj.open_in_new_tab, "open_in_new_tab": obj.open_in_new_tab,
"icon": obj.icon, "icon": obj.icon,
"view_permission_id": obj.view_permission_id "view_permission_id": obj.view_permission_id
...@@ -452,7 +448,7 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -452,7 +448,7 @@ var Backend = {}; // common variable used in all the files of the backend
); );
}, },
editMenuItem : function(obj) { editMenuItem: function (obj) {
var newObject = { var newObject = {
"id": obj.id, "id": obj.id,
"content": obj.name, "content": obj.name,
...@@ -465,16 +461,18 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -465,16 +461,18 @@ var Backend = {}; // common variable used in all the files of the backend
}; };
var menuItems = Backend.Menu.selectors.menuItemContainer.nestable('serialise'); var menuItems = Backend.Menu.selectors.menuItemContainer.nestable('serialise');
var itemData; var itemData;
$.each(menuItems, function(index, item){ $.each(menuItems, function (index, item) {
itemData = Backend.Menu.methods.findItemById(item, id); itemData = Backend.Menu.methods.findItemById(item, id);
if(itemData) { return false; } if (itemData) {
return false;
}
}); });
if(itemData.children) { if (itemData.children) {
newObject.children = itemData.children; newObject.children = itemData.children;
} }
Backend.Menu.selectors.menuItemContainer.nestable('replace', newObject); Backend.Menu.selectors.menuItemContainer.nestable('replace', newObject);
Backend.Menu.selectors.menuItemsData.val( Backend.Menu.selectors.menuItemsData.val(
JSON.stringify( JSON.stringify(
Backend.Menu.selectors.menuItemContainer.nestable('serialise') Backend.Menu.selectors.menuItemContainer.nestable('serialise')
...@@ -486,50 +484,50 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -486,50 +484,50 @@ var Backend = {}; // common variable used in all the files of the backend
init: function () { init: function () {
this.addHandlers(); this.addHandlers();
}, },
addHandlers: function () { addHandlers: function () {
var context = this; var context = this;
var formName = "_add_custom_url_form"; var formName = "_add_custom_url_form";
this.selectors.menuItemContainer.nestable({ this.selectors.menuItemContainer.nestable({
callback: function(l, e){ callback: function (l, e) {
this.selectors.menuItemsData.val(JSON.stringify($(l).nestable('serialise'))); this.selectors.menuItemsData.val(JSON.stringify($(l).nestable('serialise')));
}, },
json: this.selectors.menuItemsData.val(), json: this.selectors.menuItemsData.val(),
includeContent:true, includeContent: true,
scroll: false, scroll: false,
maxDepth: 10 maxDepth: 10
}); });
this.selectors.addCustomUrlButton.click(function() { this.selectors.addCustomUrlButton.click(function () {
var title = context.selectors.addCustomUrlButton.attr("data-header"); var title = context.selectors.addCustomUrlButton.attr("data-header");
context.selectors.modal.find(".modal-title").html(title); context.selectors.modal.find(".modal-title").html(title);
context.selectors.modal.modal("show"); context.selectors.modal.modal("show");
callback = { callback = {
success: function (request) { success: function (request) {
if (request.status >= 200 && request.status < 400) { if (request.status >= 200 && request.status < 400) {
// Success! // Success!
context.selectors.modal.find(".modal-body").html(request.responseText); context.selectors.modal.find(".modal-body").html(request.responseText);
// jQuery(document).find(context.selectors.modal).find(".view-permission-block").remove(); // jQuery(document).find(context.selectors.modal).find(".view-permission-block").remove();
jQuery(document).find(context.selectors.addCustomUrlForm).removeClass("hidden"); jQuery(document).find(context.selectors.addCustomUrlForm).removeClass("hidden");
} }
}, },
error: function (request) { error: function (request) {
//Do Something //Do Something
} }
} };
Backend.Utils.ajaxrequest(context.selectors.formUrl + "/" + formName, "get", {}, Backend.Utils.csrf, callback); Backend.Utils.ajaxrequest(context.selectors.formUrl + "/" + formName, "get", {}, Backend.Utils.csrf, callback);
}); });
jQuery(document).on("submit", context.selectors.addCustomUrlForm, function(e){ jQuery(document).on("submit", context.selectors.addCustomUrlForm, function (e) {
e.preventDefault(); e.preventDefault();
var formData = jQuery(this).serializeArray().reduce(function(obj, item) { var formData = jQuery(this).serializeArray().reduce(function (obj, item) {
obj[item.name] = item.value; obj[item.name] = item.value;
return obj; return obj;
}, {}); }, {});
if(formData.name.length > 0) { if (formData.name.length > 0) {
if(formData.id.length > 0) { if (formData.id.length > 0) {
context.methods.editMenuItem(formData); context.methods.editMenuItem(formData);
} else { } else {
context.methods.addMenuItem(formData); context.methods.addMenuItem(formData);
...@@ -538,7 +536,7 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -538,7 +536,7 @@ var Backend = {}; // common variable used in all the files of the backend
} }
}); });
jQuery(document).on("click", context.selectors.addModuleToMenuButton, function(){ jQuery(document).on("click", context.selectors.addModuleToMenuButton, function () {
var dataObj = { var dataObj = {
id: $(this).attr("data-id"), id: $(this).attr("data-id"),
name: $(this).attr("data-name"), name: $(this).attr("data-name"),
...@@ -546,11 +544,11 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -546,11 +544,11 @@ var Backend = {}; // common variable used in all the files of the backend
url_type: $(this).attr("data-url_type"), url_type: $(this).attr("data-url_type"),
open_in_new_tab: $(this).attr("data-open_in_new_tab"), open_in_new_tab: $(this).attr("data-open_in_new_tab"),
view_permission_id: $(this).attr("data-view_permission_id"), view_permission_id: $(this).attr("data-view_permission_id"),
} };
context.methods.addMenuItem(dataObj); context.methods.addMenuItem(dataObj);
}); });
jQuery(document).on("click", context.selectors.removeMenuItemButton, function() { jQuery(document).on("click", context.selectors.removeMenuItemButton, function () {
context.selectors.menuItemContainer.nestable('remove', jQuery(this).parents(".dd-item").first().attr("data-id")); context.selectors.menuItemContainer.nestable('remove', jQuery(this).parents(".dd-item").first().attr("data-id"));
Backend.Menu.selectors.menuItemsData.val( Backend.Menu.selectors.menuItemsData.val(
JSON.stringify( JSON.stringify(
...@@ -559,39 +557,40 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -559,39 +557,40 @@ var Backend = {}; // common variable used in all the files of the backend
); );
}); });
jQuery(document).on("click", context.selectors.editMenuItemButton, function() { jQuery(document).on("click", context.selectors.editMenuItemButton, function () {
id = jQuery(this).parents(".dd-item").first().attr("data-id"); id = jQuery(this).parents(".dd-item").first().attr("data-id");
var menuItems = context.selectors.menuItemContainer.nestable('serialise'); var menuItems = context.selectors.menuItemContainer.nestable('serialise');
var itemData; var itemData;
$.each(menuItems, function(index, item){ $.each(menuItems, function (index, item) {
itemData = context.methods.findItemById(item, id); itemData = context.methods.findItemById(item, id);
if(itemData) { return false; } if (itemData) {
return false;
}
}); });
if(itemData.id != undefined && itemData.id == id) if (itemData.id != undefined && itemData.id == id) {
{
callback = { callback = {
success: function (request) { success: function (request) {
if (request.status >= 200 && request.status < 400) { if (request.status >= 200 && request.status < 400) {
// Success! // Success!
context.selectors.modal.find(".modal-body").html(request.responseText); context.selectors.modal.find(".modal-body").html(request.responseText);
context.selectors.modal.find(".modal-dialog .modal-content .modal-header .modal-title").html("Edit: " + itemData.name); context.selectors.modal.find(".modal-dialog .modal-content .modal-header .modal-title").html("Edit: " + itemData.name);
$(document).find(context.selectors.modal).find(".mi-id").val(itemData.id); $(document).find(context.selectors.modal).find(".mi-id").val(itemData.id);
$(document).find(context.selectors.modal).find(".mi-name").val(itemData.name); $(document).find(context.selectors.modal).find(".mi-name").val(itemData.name);
$(document).find(context.selectors.modal).find(".mi-url").val(itemData.url); $(document).find(context.selectors.modal).find(".mi-url").val(itemData.url);
$(document).find(context.selectors.modal).find(".mi-url_type_"+itemData.url_type).prop("checked", true); $(document).find(context.selectors.modal).find(".mi-url_type_" + itemData.url_type).prop("checked", true);
if(itemData.open_in_new_tab == 1) { if (itemData.open_in_new_tab == 1) {
$(document).find(context.selectors.modal).find(".mi-open_in_new_tab").prop("checked", true); $(document).find(context.selectors.modal).find(".mi-open_in_new_tab").prop("checked", true);
} }
$(document).find(context.selectors.modal).find(".mi-icon").val(itemData.icon); $(document).find(context.selectors.modal).find(".mi-icon").val(itemData.icon);
$(document).find(context.selectors.modal).find(".mi-view_permission_id").val(itemData.view_permission_id); $(document).find(context.selectors.modal).find(".mi-view_permission_id").val(itemData.view_permission_id);
$(document).find("#menu-add-custom-url").removeClass("hidden"); $(document).find("#menu-add-custom-url").removeClass("hidden");
context.selectors.modal.modal("show"); context.selectors.modal.modal("show");
} }
}, },
error: function (request) { error: function (request) {
//Do Something //Do Something
} }
} };
Backend.Utils.ajaxrequest(context.selectors.formUrl + "/" + formName, "get", {}, Backend.Utils.csrf, callback); Backend.Utils.ajaxrequest(context.selectors.formUrl + "/" + formName, "get", {}, Backend.Utils.csrf, callback);
} }
}); });
...@@ -601,8 +600,7 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -601,8 +600,7 @@ var Backend = {}; // common variable used in all the files of the backend
/** /**
* Tiny MCE * Tiny MCE
*/ */
tinyMCE: tinyMCE: {
{
init: function () { init: function () {
tinymce.init({ tinymce.init({
path_absolute: "/", path_absolute: "/",
...@@ -648,8 +646,7 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -648,8 +646,7 @@ var Backend = {}; // common variable used in all the files of the backend
} }
}, },
emailTemplate: emailTemplate: {
{
selectors: { selectors: {
emailtemplateSelection: document.querySelector(".select2") emailtemplateSelection: document.querySelector(".select2")
...@@ -691,30 +688,25 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -691,30 +688,25 @@ var Backend = {}; // common variable used in all the files of the backend
}, },
/** /**
* Faq * Faq
* *
*/ */
Faq: Faq: {
{ selectors: {},
selectors:
{
},
init: function () { init: function () {
// this.addHandlers(); // this.addHandlers();
Backend.tinyMCE.init(); Backend.tinyMCE.init();
}, },
addHandlers: function () { addHandlers: function () {}
}
}, },
/** /**
* Profile * Profile
* *
*/ */
Profile: Profile: {
{
selectors: { selectors: {
}, },
...@@ -741,18 +733,16 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -741,18 +733,16 @@ var Backend = {}; // common variable used in all the files of the backend
* for all datatables * for all datatables
* *
*/ */
DataTableSearch: DataTableSearch: { //functionalities related to datable search at all the places
{ //functionalities related to datable search at all the places selector: {},
selector: {
},
init: function (dataTable) { init: function (dataTable) {
this.setSelectors(); this.setSelectors();
this.setSelectors.divAlerts.delay(2000).fadeOut(800); this.setSelectors.divAlerts.delay(2000).fadeOut(800);
this.addHandlers(dataTable); this.addHandlers(dataTable);
}, },
setSelectors: function () { setSelectors: function () {
...@@ -793,8 +783,8 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -793,8 +783,8 @@ var Backend = {}; // common variable used in all the files of the backend
this.selector.columnSearchInput.forEach(function (element) { this.selector.columnSearchInput.forEach(function (element) {
element.onkeypress = function (event) { element.onkeypress = function (event) {
if (event.keyCode == 13) { if (event.keyCode == 13) {
var i = element.getAttribute("data-column") // getting column index var i = element.getAttribute("data-column"); // getting column index
var v = element.value; // getting search input value var v = element.value; // getting search input value
dataTable.api().columns(i).search(v).draw(); dataTable.api().columns(i).search(v).draw();
} }
}; };
...@@ -807,7 +797,7 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -807,7 +797,7 @@ var Backend = {}; // common variable used in all the files of the backend
this.selector.columnSelectInput.forEach(function (element) { this.selector.columnSelectInput.forEach(function (element) {
element.onchange = function (event) { element.onchange = function (event) {
var i = element.getAttribute("data-column"); // getting column index var i = element.getAttribute("data-column"); // getting column index
var v = element.value; // getting search input value var v = element.value; // getting search input value
dataTable.api().columns(i).search(v).draw(); dataTable.api().columns(i).search(v).draw();
}; };
}); });
...@@ -848,8 +838,7 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -848,8 +838,7 @@ var Backend = {}; // common variable used in all the files of the backend
* Settings * Settings
* *
*/ */
Settings: Settings: {
{
selectors: { selectors: {
RouteURL: "", RouteURL: "",
setting: document.getElementById("setting") setting: document.getElementById("setting")
...@@ -884,8 +873,7 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -884,8 +873,7 @@ var Backend = {}; // common variable used in all the files of the backend
if (data == 'logo') { if (data == 'logo') {
value = 'logo'; value = 'logo';
Backend.Utils.addClass(Backend.Settings.selectors.imageRemoveLogo, 'hidden'); Backend.Utils.addClass(Backend.Settings.selectors.imageRemoveLogo, 'hidden');
} } else {
else {
value = 'favicon'; value = 'favicon';
Backend.Utils.addClass(Backend.Settings.selectors.imageRemoveFavicon, 'hidden'); Backend.Utils.addClass(Backend.Settings.selectors.imageRemoveFavicon, 'hidden');
} }
...@@ -901,21 +889,15 @@ var Backend = {}; // common variable used in all the files of the backend ...@@ -901,21 +889,15 @@ var Backend = {}; // common variable used in all the files of the backend
} }
}; };
Backend.Utils.ajaxrequest(route, "POST", { data: value, _token: Backend.Utils.csrf }, Backend.Utils.csrf, callback); Backend.Utils.ajaxrequest(route, "POST", {
data: value,
_token: Backend.Utils.csrf
}, Backend.Utils.csrf, callback);
} }
}); });
}; };
} }
} }
}; };
})();
})();
\ No newline at end of file
...@@ -26,7 +26,7 @@ require('../bootstrap'); ...@@ -26,7 +26,7 @@ require('../bootstrap');
//Make sure jQuery has been loaded before app.js //Make sure jQuery has been loaded before app.js
if (typeof jQuery === 'undefined') { if (typeof jQuery === 'undefined') {
throw new Error('AdminLTE requires jQuery'); throw new Error('AdminLTE requires jQuery');
} }
/* AdminLTE /* AdminLTE
...@@ -46,101 +46,101 @@ $.AdminLTE = {}; ...@@ -46,101 +46,101 @@ $.AdminLTE = {};
* Modify these options to suit your implementation * Modify these options to suit your implementation
*/ */
$.AdminLTE.options = { $.AdminLTE.options = {
//Add slimscroll to navbar menus //Add slimscroll to navbar menus
//This requires you to load the slimscroll plugin //This requires you to load the slimscroll plugin
//in every page before app.js //in every page before app.js
navbarMenuSlimscroll: true, navbarMenuSlimscroll: true,
navbarMenuSlimscrollWidth: '3px', //The width of the scroll bar navbarMenuSlimscrollWidth: '3px', //The width of the scroll bar
navbarMenuHeight: '200px', //The height of the inner menu navbarMenuHeight: '200px', //The height of the inner menu
//General animation speed for JS animated elements such as box collapse/expand and //General animation speed for JS animated elements such as box collapse/expand and
//sidebar treeview slide up/down. This options accepts an integer as milliseconds, //sidebar treeview slide up/down. This options accepts an integer as milliseconds,
//'fast', 'normal', or 'slow' //'fast', 'normal', or 'slow'
animationSpeed: 500, animationSpeed: 500,
//Sidebar push menu toggle button selector //Sidebar push menu toggle button selector
sidebarToggleSelector: '[data-toggle="offcanvas"]', sidebarToggleSelector: '[data-toggle="offcanvas"]',
//Activate sidebar push menu //Activate sidebar push menu
sidebarPushMenu: true, sidebarPushMenu: true,
//Activate sidebar slimscroll if the fixed layout is set (requires SlimScroll Plugin) //Activate sidebar slimscroll if the fixed layout is set (requires SlimScroll Plugin)
sidebarSlimScroll: true, sidebarSlimScroll: true,
//Enable sidebar expand on hover effect for sidebar mini //Enable sidebar expand on hover effect for sidebar mini
//This option is forced to true if both the fixed layout and sidebar mini //This option is forced to true if both the fixed layout and sidebar mini
//are used together //are used together
sidebarExpandOnHover: false, sidebarExpandOnHover: false,
//BoxRefresh Plugin //BoxRefresh Plugin
enableBoxRefresh: true, enableBoxRefresh: true,
//Bootstrap.js tooltip //Bootstrap.js tooltip
enableBSToppltip: true, enableBSToppltip: true,
BSTooltipSelector: '[data-toggle="tooltip"]', BSTooltipSelector: '[data-toggle="tooltip"]',
//Enable Fast Click. Fastclick.js creates a more //Enable Fast Click. Fastclick.js creates a more
//native touch experience with touch devices. If you //native touch experience with touch devices. If you
//choose to enable the plugin, make sure you load the script //choose to enable the plugin, make sure you load the script
//before AdminLTE's app.js //before AdminLTE's app.js
enableFastclick: true, enableFastclick: true,
//Control Sidebar Options //Control Sidebar Options
enableControlSidebar: true, enableControlSidebar: true,
controlSidebarOptions: { controlSidebarOptions: {
//Which button should trigger the open/close event //Which button should trigger the open/close event
toggleBtnSelector: '[data-toggle="control-sidebar"]', toggleBtnSelector: '[data-toggle="control-sidebar"]',
//The sidebar selector //The sidebar selector
selector: '.control-sidebar', selector: '.control-sidebar',
//Enable slide over content //Enable slide over content
slide: true slide: true
},
//Box Widget Plugin. Enable this plugin
//to allow boxes to be collapsed and/or removed
enableBoxWidget: true,
//Box Widget plugin options
boxWidgetOptions: {
boxWidgetIcons: {
//Collapse icon
collapse: 'fa-minus',
//Open icon
open: 'fa-plus',
//Remove icon
remove: 'fa-times'
}, },
//Box Widget Plugin. Enable this plugin boxWidgetSelectors: {
//to allow boxes to be collapsed and/or removed //Remove button selector
enableBoxWidget: true, remove: '[data-widget="remove"]',
//Box Widget plugin options //Collapse button selector
boxWidgetOptions: { collapse: '[data-widget="collapse"]'
boxWidgetIcons: {
//Collapse icon
collapse: 'fa-minus',
//Open icon
open: 'fa-plus',
//Remove icon
remove: 'fa-times'
},
boxWidgetSelectors: {
//Remove button selector
remove: '[data-widget="remove"]',
//Collapse button selector
collapse: '[data-widget="collapse"]'
}
},
//Direct Chat plugin options
directChat: {
//Enable direct chat by default
enable: true,
//The button to open and close the chat contacts pane
contactToggleSelector: '[data-widget="chat-pane-toggle"]'
},
//Define the set of colors to use globally around the website
colors: {
lightBlue: '#3c8dbc',
red: '#f56954',
green: '#00a65a',
aqua: '#00c0ef',
yellow: '#f39c12',
blue: '#0073b7',
navy: '#001F3F',
teal: '#39CCCC',
olive: '#3D9970',
lime: '#01FF70',
orange: '#FF851B',
fuchsia: '#F012BE',
purple: '#8E24AA',
maroon: '#D81B60',
black: '#222222',
gray: '#d2d6de'
},
//The standard screen sizes that bootstrap uses.
//If you change these in the variables.less file, change
//them here too.
screenSizes: {
xs: 480,
sm: 768,
md: 992,
lg: 1200
} }
},
//Direct Chat plugin options
directChat: {
//Enable direct chat by default
enable: true,
//The button to open and close the chat contacts pane
contactToggleSelector: '[data-widget="chat-pane-toggle"]'
},
//Define the set of colors to use globally around the website
colors: {
lightBlue: '#3c8dbc',
red: '#f56954',
green: '#00a65a',
aqua: '#00c0ef',
yellow: '#f39c12',
blue: '#0073b7',
navy: '#001F3F',
teal: '#39CCCC',
olive: '#3D9970',
lime: '#01FF70',
orange: '#FF851B',
fuchsia: '#F012BE',
purple: '#8E24AA',
maroon: '#D81B60',
black: '#222222',
gray: '#d2d6de'
},
//The standard screen sizes that bootstrap uses.
//If you change these in the variables.less file, change
//them here too.
screenSizes: {
xs: 480,
sm: 768,
md: 992,
lg: 1200
}
}; };
/* ------------------ /* ------------------
...@@ -150,448 +150,452 @@ $.AdminLTE.options = { ...@@ -150,448 +150,452 @@ $.AdminLTE.options = {
* functions and plugins as specified by the * functions and plugins as specified by the
* options above. * options above.
*/ */
$(function () { $(function() {
//Extend options if external options exist //Extend options if external options exist
if (typeof AdminLTEOptions !== 'undefined') { if (typeof AdminLTEOptions !== 'undefined') {
$.extend(true, $.extend(true,
$.AdminLTE.options, $.AdminLTE.options,
AdminLTEOptions); AdminLTEOptions);
} }
//Easy access to options //Easy access to options
var o = $.AdminLTE.options; var o = $.AdminLTE.options;
//Set up the object //Set up the object
_init(); _init();
//Activate the layout maker
$.AdminLTE.layout.activate();
//Enable sidebar tree view controls
$.AdminLTE.tree('.sidebar');
//Enable control sidebar
if (o.enableControlSidebar) {
$.AdminLTE.controlSidebar.activate();
}
//Add slimscroll to navbar dropdown
if (o.navbarMenuSlimscroll && typeof $.fn.slimscroll !== 'undefined') {
$('.navbar .menu').slimscroll({
height: o.navbarMenuHeight,
alwaysVisible: false,
size: o.navbarMenuSlimscrollWidth
}).css('width', '100%');
}
//Activate sidebar push menu
if (o.sidebarPushMenu) {
$.AdminLTE.pushMenu.activate(o.sidebarToggleSelector);
}
//Activate Bootstrap tooltip
if (o.enableBSToppltip) {
$('body').tooltip({
selector: o.BSTooltipSelector
});
}
//Activate box widget
if (o.enableBoxWidget) {
$.AdminLTE.boxWidget.activate();
}
//Activate fast click
if (o.enableFastclick && typeof FastClick !== 'undefined') {
FastClick.attach(document.body);
}
//Activate direct chat widget
if (o.directChat.enable) {
$(o.directChat.contactToggleSelector).on('click', function() {
var box = $(this).parents('.direct-chat').first();
box.toggleClass('direct-chat-contacts-open');
});
}
/*
* INITIALIZE BUTTON TOGGLE
* ------------------------
*/
$('.btn-group[data-toggle="btn-toggle"]').each(function() {
var group = $(this);
$(this).find('.btn').on('click', function(e) {
group.find('.btn.active').removeClass('active');
$(this).addClass('active');
e.preventDefault();
});
//Activate the layout maker });
$.AdminLTE.layout.activate(); });
//Enable sidebar tree view controls /* ----------------------------------
$.AdminLTE.tree('.sidebar'); * - Initialize the AdminLTE Object -
* ----------------------------------
* All AdminLTE functions are implemented below.
*/
function _init() {
//Enable control sidebar /* Layout
if (o.enableControlSidebar) { * ======
$.AdminLTE.controlSidebar.activate(); * Fixes the layout height in case min-height fails.
} *
* @type Object
* @usage $.AdminLTE.layout.activate()
* $.AdminLTE.layout.fix()
* $.AdminLTE.layout.fixSidebar()
*/
$.AdminLTE.layout = {
activate: function() {
var _this = this;
_this.fix();
_this.fixSidebar();
$(window, '.wrapper').resize(function() {
_this.fix();
_this.fixSidebar();
});
},
fix: function() {
//Get window height and the wrapper height
var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
var windowHeight = $(window).height();
var sidebarHeight = $('.sidebar').height();
//Set the min-height of the content and sidebar based on the
//the height of the document.
if ($('body').hasClass('fixed')) {
$('.content-wrapper, .right-side').css('min-height', windowHeight - $('.main-footer').outerHeight());
} else {
var postSetWidth;
if (windowHeight >= sidebarHeight) {
$('.content-wrapper, .right-side').css('min-height', windowHeight - neg);
postSetWidth = windowHeight - neg;
} else {
$('.content-wrapper, .right-side').css('min-height', sidebarHeight);
postSetWidth = sidebarHeight;
}
//Add slimscroll to navbar dropdown //Fix for the control sidebar height
if (o.navbarMenuSlimscroll && typeof $.fn.slimscroll !== 'undefined') { var controlSidebar = $($.AdminLTE.options.controlSidebarOptions.selector);
$('.navbar .menu').slimscroll({ if (typeof controlSidebar !== 'undefined') {
height: o.navbarMenuHeight, if (controlSidebar.height() > postSetWidth) {
alwaysVisible: false, $('.content-wrapper, .right-side').css('min-height', controlSidebar.height());
size: o.navbarMenuSlimscrollWidth }
}).css('width', '100%'); }
}
//Activate sidebar push menu }
if (o.sidebarPushMenu) { },
$.AdminLTE.pushMenu.activate(o.sidebarToggleSelector); fixSidebar: function() {
//Make sure the body tag has the .fixed class
if (!$('body').hasClass('fixed')) {
if (typeof $.fn.slimScroll !== 'undefined') {
$('.sidebar').slimScroll({
destroy: true
}).height('auto');
}
return;
} else if (typeof $.fn.slimScroll === 'undefined' && console) {
console.error('Error: the fixed layout requires the slimscroll plugin!');
}
//Enable slimscroll for fixed layout
if ($.AdminLTE.options.sidebarSlimScroll) {
if (typeof $.fn.slimScroll !== 'undefined') {
//Destroy if it exists
$('.sidebar').slimScroll({
destroy: true
}).height('auto');
//Add slimscroll
$('.sidebar').slimscroll({
height: ($(window).height() - $('.main-header').height()) + 'px',
color: 'rgba(0,0,0,0.2)',
size: '3px'
});
}
}
} }
};
/* PushMenu()
* ==========
* Adds the push menu functionality to the sidebar.
*
* @type Function
* @usage: $.AdminLTE.pushMenu("[data-toggle='offcanvas']")
*/
$.AdminLTE.pushMenu = {
activate: function(toggleBtn) {
//Get the screen sizes
var screenSizes = $.AdminLTE.options.screenSizes;
//Enable sidebar toggle
$(toggleBtn).on('click', function(e) {
e.preventDefault();
//Enable sidebar push menu
if ($(window).width() > (screenSizes.sm - 1)) {
$('body').toggleClass('sidebar-collapse');
}
//Handle sidebar push menu for small screens
else {
if ($('body').hasClass('sidebar-open')) {
$('body').removeClass('sidebar-open');
$('body').removeClass('sidebar-collapse');
} else {
$('body').addClass('sidebar-open');
}
}
});
//Activate Bootstrap tooltip $('.content-wrapper').click(function() {
if (o.enableBSToppltip) { //Enable hide menu when clicking on the content-wrapper on small screens
$('body').tooltip({ if ($(window).width() <= (screenSizes.sm - 1) && $('body').hasClass('sidebar-open')) {
selector: o.BSTooltipSelector $('body').removeClass('sidebar-open');
}); }
} });
//Activate box widget //Enable expand on hover for sidebar mini
if (o.enableBoxWidget) { if ($.AdminLTE.options.sidebarExpandOnHover ||
$.AdminLTE.boxWidget.activate(); ($('body').hasClass('fixed') && $('body').hasClass('sidebar-mini'))) {
} this.expandOnHover();
}
//Activate fast click },
if (o.enableFastclick && typeof FastClick !== 'undefined') { expandOnHover: function() {
FastClick.attach(document.body); var _this = this;
var screenWidth = $.AdminLTE.options.screenSizes.sm - 1;
//Expand sidebar on hover
$('.main-sidebar').hover(function() {
if ($('body').hasClass('sidebar-mini') &&
$('body').hasClass('sidebar-collapse') &&
$(window).width() > screenWidth) {
_this.expand();
}
}, function() {
if ($('body').hasClass('sidebar-mini') &&
$('body').hasClass('sidebar-expanded-on-hover') &&
$(window).width() > screenWidth) {
_this.collapse();
}
});
},
expand: function() {
$('body').removeClass('sidebar-collapse').addClass('sidebar-expanded-on-hover');
},
collapse: function() {
if ($('body').hasClass('sidebar-expanded-on-hover')) {
$('body').removeClass('sidebar-expanded-on-hover').addClass('sidebar-collapse');
}
} }
};
//Activate direct chat widget
if (o.directChat.enable) { /* Tree()
$(o.directChat.contactToggleSelector).on('click', function () { * ======
var box = $(this).parents('.direct-chat').first(); * Converts the sidebar into a multilevel
box.toggleClass('direct-chat-contacts-open'); * tree view menu.
*
* @type Function
* @Usage: $.AdminLTE.tree('.sidebar')
*/
$.AdminLTE.tree = function(menu) {
var _this = this;
var animationSpeed = $.AdminLTE.options.animationSpeed;
$('li a', $(menu)).on('click', function(e) {
//Get the clicked link and the next element
var $this = $(this);
var checkElement = $this.next();
//Check if the next element is a menu and is visible
if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible'))) {
//Close the menu
checkElement.slideUp(animationSpeed, function() {
checkElement.removeClass('menu-open');
//Fix the layout in case the sidebar stretches over the height of the window
//_this.layout.fix();
}); });
} checkElement.parent('li').removeClass('active');
}
/* //If the menu is not visible
* INITIALIZE BUTTON TOGGLE else if ((checkElement.is('.treeview-menu')) && (!checkElement.is(':visible'))) {
* ------------------------ //Get the parent menu
*/ var parent = $this.parents('ul').first();
$('.btn-group[data-toggle="btn-toggle"]').each(function () { //Close all open menus within the parent
var group = $(this); var ul = parent.find('ul:visible').slideUp(animationSpeed);
$(this).find('.btn').on('click', function (e) { //Remove the menu-open class from the parent
group.find('.btn.active').removeClass('active'); ul.removeClass('menu-open');
$(this).addClass('active'); //Get the parent li
e.preventDefault(); var liParent = $this.parent('li');
//Open the target menu and add the menu-open class
checkElement.slideDown(animationSpeed, function() {
//Add the class active to the parent li
checkElement.addClass('menu-open');
parent.find('li.active').removeClass('active');
liParent.addClass('active');
//Fix the layout in case the sidebar stretches over the height of the window
_this.layout.fix();
}); });
}
//if this isn't a link, prevent the page from being redirected
if (checkElement.is('.treeview-menu')) {
e.preventDefault();
}
}); });
}); };
/* ---------------------------------- /* ControlSidebar
* - Initialize the AdminLTE Object - * ==============
* ---------------------------------- * Adds functionality to the right sidebar
* All AdminLTE functions are implemented below. *
*/ * @type Object
function _init() { * @usage $.AdminLTE.controlSidebar.activate(options)
*/
/* Layout $.AdminLTE.controlSidebar = {
* ====== //instantiate the object
* Fixes the layout height in case min-height fails. activate: function() {
* //Get the object
* @type Object var _this = this;
* @usage $.AdminLTE.layout.activate() //Update options
* $.AdminLTE.layout.fix() var o = $.AdminLTE.options.controlSidebarOptions;
* $.AdminLTE.layout.fixSidebar() //Get the sidebar
*/ var sidebar = $(o.selector);
$.AdminLTE.layout = { //The toggle button
activate: function () { var btn = $(o.toggleBtnSelector);
var _this = this;
_this.fix(); //Listen to the click event
_this.fixSidebar(); btn.on('click', function(e) {
$(window, '.wrapper').resize(function () { e.preventDefault();
_this.fix(); //If the sidebar is not open
_this.fixSidebar(); if (!sidebar.hasClass('control-sidebar-open') && !$('body').hasClass('control-sidebar-open')) {
}); //Open the sidebar
}, _this.open(sidebar, o.slide);
fix: function () { } else {
//Get window height and the wrapper height _this.close(sidebar, o.slide);
var neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
var windowHeight = $(window).height();
var sidebarHeight = $('.sidebar').height();
//Set the min-height of the content and sidebar based on the
//the height of the document.
if ($('body').hasClass('fixed')) {
$('.content-wrapper, .right-side').css('min-height', windowHeight - $('.main-footer').outerHeight());
} else {
var postSetWidth;
if (windowHeight >= sidebarHeight) {
$('.content-wrapper, .right-side').css('min-height', windowHeight - neg);
postSetWidth = windowHeight - neg;
} else {
$('.content-wrapper, .right-side').css('min-height', sidebarHeight);
postSetWidth = sidebarHeight;
}
//Fix for the control sidebar height
var controlSidebar = $($.AdminLTE.options.controlSidebarOptions.selector);
if (typeof controlSidebar !== 'undefined') {
if (controlSidebar.height() > postSetWidth) {
$('.content-wrapper, .right-side').css('min-height', controlSidebar.height());
}
}
}
},
fixSidebar: function () {
//Make sure the body tag has the .fixed class
if (!$('body').hasClass('fixed')) {
if (typeof $.fn.slimScroll !== 'undefined') {
$('.sidebar').slimScroll({destroy: true}).height('auto');
}
return;
} else if (typeof $.fn.slimScroll === 'undefined' && console) {
console.error('Error: the fixed layout requires the slimscroll plugin!');
}
//Enable slimscroll for fixed layout
if ($.AdminLTE.options.sidebarSlimScroll) {
if (typeof $.fn.slimScroll !== 'undefined') {
//Destroy if it exists
$('.sidebar').slimScroll({destroy: true}).height('auto');
//Add slimscroll
$('.sidebar').slimscroll({
height: ($(window).height() - $('.main-header').height()) + 'px',
color: 'rgba(0,0,0,0.2)',
size: '3px'
});
}
}
} }
}; });
/* PushMenu() //If the body has a boxed layout, fix the sidebar bg position
* ========== var bg = $('.control-sidebar-bg');
* Adds the push menu functionality to the sidebar. _this._fix(bg);
*
* @type Function //If the body has a fixed layout, make the control sidebar fixed
* @usage: $.AdminLTE.pushMenu("[data-toggle='offcanvas']") if ($('body').hasClass('fixed')) {
*/ _this._fixForFixed(sidebar);
$.AdminLTE.pushMenu = { } else {
activate: function (toggleBtn) { //If the content height is less than the sidebar's height, force max height
//Get the screen sizes if ($('.content-wrapper, .right-side').height() < sidebar.height()) {
var screenSizes = $.AdminLTE.options.screenSizes; _this._fixForContent(sidebar);
//Enable sidebar toggle
$(toggleBtn).on('click', function (e) {
e.preventDefault();
//Enable sidebar push menu
if ($(window).width() > (screenSizes.sm - 1)) {
$('body').toggleClass('sidebar-collapse');
}
//Handle sidebar push menu for small screens
else {
if ($('body').hasClass('sidebar-open')) {
$('body').removeClass('sidebar-open');
$('body').removeClass('sidebar-collapse');
} else {
$('body').addClass('sidebar-open');
}
}
});
$('.content-wrapper').click(function () {
//Enable hide menu when clicking on the content-wrapper on small screens
if ($(window).width() <= (screenSizes.sm - 1) && $('body').hasClass('sidebar-open')) {
$('body').removeClass('sidebar-open');
}
});
//Enable expand on hover for sidebar mini
if ($.AdminLTE.options.sidebarExpandOnHover ||
($('body').hasClass('fixed') && $('body').hasClass('sidebar-mini'))) {
this.expandOnHover();
}
},
expandOnHover: function () {
var _this = this;
var screenWidth = $.AdminLTE.options.screenSizes.sm - 1;
//Expand sidebar on hover
$('.main-sidebar').hover(function () {
if ($('body').hasClass('sidebar-mini') &&
$('body').hasClass('sidebar-collapse') &&
$(window).width() > screenWidth) {
_this.expand();
}
}, function () {
if ($('body').hasClass('sidebar-mini') &&
$('body').hasClass('sidebar-expanded-on-hover') &&
$(window).width() > screenWidth) {
_this.collapse();
}
});
},
expand: function () {
$('body').removeClass('sidebar-collapse').addClass('sidebar-expanded-on-hover');
},
collapse: function () {
if ($('body').hasClass('sidebar-expanded-on-hover')) {
$('body').removeClass('sidebar-expanded-on-hover').addClass('sidebar-collapse');
}
} }
}; }
},
/* Tree() //Open the control sidebar
* ====== open: function(sidebar, slide) {
* Converts the sidebar into a multilevel // var _this = this;
* tree view menu. //Slide over content
* if (slide) {
* @type Function sidebar.addClass('control-sidebar-open');
* @Usage: $.AdminLTE.tree('.sidebar') } else {
*/ //Push the content by adding the open class to the body instead
$.AdminLTE.tree = function (menu) { //of the sidebar itself
var _this = this; $('body').addClass('control-sidebar-open');
var animationSpeed = $.AdminLTE.options.animationSpeed; }
$('li a', $(menu)).on('click', function (e) { },
//Get the clicked link and the next element //Close the control sidebar
var $this = $(this); close: function(sidebar, slide) {
var checkElement = $this.next(); if (slide) {
sidebar.removeClass('control-sidebar-open');
//Check if the next element is a menu and is visible } else {
if ((checkElement.is('.treeview-menu')) && (checkElement.is(':visible'))) { $('body').removeClass('control-sidebar-open');
//Close the menu }
checkElement.slideUp(animationSpeed, function () { },
checkElement.removeClass('menu-open'); _fix: function(sidebar) {
//Fix the layout in case the sidebar stretches over the height of the window var _this = this;
//_this.layout.fix(); if ($('body').hasClass('layout-boxed')) {
}); sidebar.css('position', 'absolute');
checkElement.parent('li').removeClass('active'); sidebar.height($('.wrapper').height());
} $(window).resize(function() {
//If the menu is not visible _this._fix(sidebar);
else if ((checkElement.is('.treeview-menu')) && (!checkElement.is(':visible'))) {
//Get the parent menu
var parent = $this.parents('ul').first();
//Close all open menus within the parent
var ul = parent.find('ul:visible').slideUp(animationSpeed);
//Remove the menu-open class from the parent
ul.removeClass('menu-open');
//Get the parent li
var liParent = $this.parent('li');
//Open the target menu and add the menu-open class
checkElement.slideDown(animationSpeed, function () {
//Add the class active to the parent li
checkElement.addClass('menu-open');
parent.find('li.active').removeClass('active');
liParent.addClass('active');
//Fix the layout in case the sidebar stretches over the height of the window
_this.layout.fix();
});
}
//if this isn't a link, prevent the page from being redirected
if (checkElement.is('.treeview-menu')) {
e.preventDefault();
}
}); });
}; } else {
sidebar.css({
/* ControlSidebar 'position': 'fixed',
* ============== 'height': 'auto'
* Adds functionality to the right sidebar });
* }
* @type Object },
* @usage $.AdminLTE.controlSidebar.activate(options) _fixForFixed: function(sidebar) {
*/ sidebar.css({
$.AdminLTE.controlSidebar = { 'position': 'fixed',
//instantiate the object 'max-height': '100%',
activate: function () { 'overflow': 'auto',
//Get the object 'padding-bottom': '50px'
var _this = this; });
//Update options },
var o = $.AdminLTE.options.controlSidebarOptions; _fixForContent: function(sidebar) {
//Get the sidebar $('.content-wrapper, .right-side').css('min-height', sidebar.height());
var sidebar = $(o.selector); }
//The toggle button };
var btn = $(o.toggleBtnSelector);
/* BoxWidget
//Listen to the click event * =========
btn.on('click', function (e) { * BoxWidget is a plugin to handle collapsing and
e.preventDefault(); * removing boxes from the screen.
//If the sidebar is not open *
if (!sidebar.hasClass('control-sidebar-open') && !$('body').hasClass('control-sidebar-open')) { * @type Object
//Open the sidebar * @usage $.AdminLTE.boxWidget.activate()
_this.open(sidebar, o.slide); * Set all your options in the main $.AdminLTE.options object
} else { */
_this.close(sidebar, o.slide); $.AdminLTE.boxWidget = {
} selectors: $.AdminLTE.options.boxWidgetOptions.boxWidgetSelectors,
}); icons: $.AdminLTE.options.boxWidgetOptions.boxWidgetIcons,
animationSpeed: $.AdminLTE.options.animationSpeed,
//If the body has a boxed layout, fix the sidebar bg position activate: function(_box) {
var bg = $('.control-sidebar-bg'); var _this = this;
_this._fix(bg); if (!_box) {
_box = document; // activate all boxes per default
//If the body has a fixed layout, make the control sidebar fixed }
if ($('body').hasClass('fixed')) { //Listen for collapse event triggers
_this._fixForFixed(sidebar); $(_box).find(_this.selectors.collapse).on('click', function(e) {
} else { e.preventDefault();
//If the content height is less than the sidebar's height, force max height _this.collapse($(this));
if ($('.content-wrapper, .right-side').height() < sidebar.height()) { });
_this._fixForContent(sidebar);
} //Listen for remove event triggers
} $(_box).find(_this.selectors.remove).on('click', function(e) {
}, e.preventDefault();
//Open the control sidebar _this.remove($(this));
open: function (sidebar, slide) { });
// var _this = this; },
//Slide over content collapse: function(element) {
if (slide) { var _this = this;
sidebar.addClass('control-sidebar-open'); //Find the box parent
} else { var box = element.parents('.box').first();
//Push the content by adding the open class to the body instead //Find the body and the footer
//of the sidebar itself var boxContent = box.find('> .box-body, > .box-footer');
$('body').addClass('control-sidebar-open'); if (!box.hasClass('collapsed-box')) {
} //Convert minus into plus
}, element.children(':first')
//Close the control sidebar .removeClass(_this.icons.collapse)
close: function (sidebar, slide) { .addClass(_this.icons.open);
if (slide) { //Hide the content
sidebar.removeClass('control-sidebar-open'); boxContent.slideUp(_this.animationSpeed, function() {
} else { box.addClass('collapsed-box');
$('body').removeClass('control-sidebar-open'); });
} } else {
}, //Convert plus into minus
_fix: function (sidebar) { element.children(':first')
var _this = this; .removeClass(_this.icons.open)
if ($('body').hasClass('layout-boxed')) { .addClass(_this.icons.collapse);
sidebar.css('position', 'absolute'); //Show the content
sidebar.height($('.wrapper').height()); boxContent.slideDown(_this.animationSpeed, function() {
$(window).resize(function () { box.removeClass('collapsed-box');
_this._fix(sidebar); });
}); }
} else { },
sidebar.css({ remove: function(element) {
'position': 'fixed', //Find the box parent
'height': 'auto' var box = element.parents('.box').first();
}); box.slideUp(this.animationSpeed);
} }
}, };
_fixForFixed: function (sidebar) {
sidebar.css({
'position': 'fixed',
'max-height': '100%',
'overflow': 'auto',
'padding-bottom': '50px'
});
},
_fixForContent: function (sidebar) {
$('.content-wrapper, .right-side').css('min-height', sidebar.height());
}
};
/* BoxWidget
* =========
* BoxWidget is a plugin to handle collapsing and
* removing boxes from the screen.
*
* @type Object
* @usage $.AdminLTE.boxWidget.activate()
* Set all your options in the main $.AdminLTE.options object
*/
$.AdminLTE.boxWidget = {
selectors: $.AdminLTE.options.boxWidgetOptions.boxWidgetSelectors,
icons: $.AdminLTE.options.boxWidgetOptions.boxWidgetIcons,
animationSpeed: $.AdminLTE.options.animationSpeed,
activate: function (_box) {
var _this = this;
if (! _box) {
_box = document; // activate all boxes per default
}
//Listen for collapse event triggers
$(_box).find(_this.selectors.collapse).on('click', function (e) {
e.preventDefault();
_this.collapse($(this));
});
//Listen for remove event triggers
$(_box).find(_this.selectors.remove).on('click', function (e) {
e.preventDefault();
_this.remove($(this));
});
},
collapse: function (element) {
var _this = this;
//Find the box parent
var box = element.parents('.box').first();
//Find the body and the footer
var boxContent = box.find('> .box-body, > .box-footer');
if (!box.hasClass('collapsed-box')) {
//Convert minus into plus
element.children(':first')
.removeClass(_this.icons.collapse)
.addClass(_this.icons.open);
//Hide the content
boxContent.slideUp(_this.animationSpeed, function () {
box.addClass('collapsed-box');
});
} else {
//Convert plus into minus
element.children(':first')
.removeClass(_this.icons.open)
.addClass(_this.icons.collapse);
//Show the content
boxContent.slideDown(_this.animationSpeed, function () {
box.removeClass('collapsed-box');
});
}
},
remove: function (element) {
//Find the box parent
var box = element.parents('.box').first();
box.slideUp(this.animationSpeed);
}
};
} }
/* ------------------ /* ------------------
...@@ -609,68 +613,66 @@ function _init() { ...@@ -609,68 +613,66 @@ function _init() {
* @type plugin * @type plugin
* @usage $('#box-widget').boxRefresh( options ); * @usage $('#box-widget').boxRefresh( options );
*/ */
(function ($) { (function($) {
$.fn.boxRefresh = function (options) { $.fn.boxRefresh = function(options) {
// Render options // Render options
var settings = $.extend({ var settings = $.extend({
//Refresh button selector //Refresh button selector
trigger: '.refresh-btn', trigger: '.refresh-btn',
//File source to be loaded (e.g: ajax/src.php) //File source to be loaded (e.g: ajax/src.php)
source: '', source: '',
//Callbacks //Callbacks
onLoadStart: function (box) { onLoadStart: function(box) {}, //Right after the button has been clicked
}, //Right after the button has been clicked onLoadDone: function(box) {} //When the source has been loaded
onLoadDone: function (box) {
} //When the source has been loaded }, options);
}, options); //The overlay
var overlay = $('<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>');
//The overlay
var overlay = $('<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>'); return this.each(function() {
//if a source is specified
return this.each(function () { if (settings.source === '') {
//if a source is specified if (console) {
if (settings.source === '') { console.log('Please specify a source first - boxRefresh()');
if (console) { }
console.log('Please specify a source first - boxRefresh()'); return;
} }
return; //the box
} var box = $(this);
//the box //the button
var box = $(this); var rBtn = box.find(settings.trigger).first();
//the button
var rBtn = box.find(settings.trigger).first(); //On trigger click
rBtn.on('click', function(e) {
//On trigger click e.preventDefault();
rBtn.on('click', function (e) { //Add loading overlay
e.preventDefault(); start(box);
//Add loading overlay
start(box); //Perform ajax call
box.find('.box-body').load(settings.source, function() {
//Perform ajax call done(box);
box.find('.box-body').load(settings.source, function () {
done(box);
});
});
}); });
});
});
function start(box) { function start(box) {
//Add overlay and loading img //Add overlay and loading img
box.append(overlay); box.append(overlay);
settings.onLoadStart.call(box); settings.onLoadStart.call(box);
} }
function done(box) { function done(box) {
//Remove overlay and loading img //Remove overlay and loading img
box.find(overlay).remove(); box.find(overlay).remove();
settings.onLoadDone.call(box); settings.onLoadDone.call(box);
} }
}; };
})(jQuery); })(jQuery);
...@@ -683,11 +685,11 @@ function _init() { ...@@ -683,11 +685,11 @@ function _init() {
* @type plugin * @type plugin
* @usage $('#box-widget').activateBox(); * @usage $('#box-widget').activateBox();
*/ */
(function ($) { (function($) {
$.fn.activateBox = function () { $.fn.activateBox = function() {
$.AdminLTE.boxWidget.activate(this); $.AdminLTE.boxWidget.activate(this);
}; };
})(jQuery); })(jQuery);
...@@ -699,42 +701,40 @@ function _init() { ...@@ -699,42 +701,40 @@ function _init() {
* @type plugin * @type plugin
* @usage $('#todo-widget').todolist( options ); * @usage $('#todo-widget').todolist( options );
*/ */
(function ($) { (function($) {
$.fn.todolist = function (options) { $.fn.todolist = function(options) {
// Render options // Render options
var settings = $.extend({ var settings = $.extend({
//When the user checks the input //When the user checks the input
onCheck: function (ele) { onCheck: function(ele) {},
}, //When the user unchecks the input
//When the user unchecks the input onUncheck: function(ele) {}
onUncheck: function (ele) { }, options);
}
}, options); return this.each(function() {
return this.each(function () { if (typeof $.fn.iCheck !== 'undefined') {
$('input', this).on('ifChecked', function(event) {
if (typeof $.fn.iCheck !== 'undefined') { var ele = $(this).parents('li').first();
$('input', this).on('ifChecked', function (event) { ele.toggleClass('done');
var ele = $(this).parents('li').first(); settings.onCheck.call(ele);
ele.toggleClass('done');
settings.onCheck.call(ele);
});
$('input', this).on('ifUnchecked', function (event) {
var ele = $(this).parents('li').first();
ele.toggleClass('done');
settings.onUncheck.call(ele);
});
} else {
$('input', this).on('change', function (event) {
var ele = $(this).parents('li').first();
ele.toggleClass('done');
settings.onCheck.call(ele);
});
}
}); });
};
$('input', this).on('ifUnchecked', function(event) {
var ele = $(this).parents('li').first();
ele.toggleClass('done');
settings.onUncheck.call(ele);
});
} else {
$('input', this).on('change', function(event) {
var ele = $(this).parents('li').first();
ele.toggleClass('done');
settings.onCheck.call(ele);
});
}
});
};
}(jQuery)); }(jQuery));
/** /**
...@@ -744,7 +744,8 @@ function _init() { ...@@ -744,7 +744,8 @@ function _init() {
*/ */
Vue.component('flash', require('../components/backend/Flash.vue')); Vue.component('flash', require('../components/backend/Flash.vue'));
Vue.component('export-component', require('../components/backend/Export.vue'));
const app = new Vue({ const app = new Vue({
el: '#app' el: '#app'
}); });
\ No newline at end of file
<template>
<div class="btn-group">
<button type="button" class="btn btn-warning btn-flat dropdown-toggle" data-toggle="dropdown">Export
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li id="copyButton"><a href="#"><i class="fa fa-clone"></i> Copy</a></li>
<li id="csvButton"><a href="#"><i class="fa fa-file-text-o"></i> CSV</a></li>
<li id="excelButton"><a href="#"><i class="fa fa-file-excel-o"></i> Excel</a></li>
<li id="pdfButton"><a href="#"><i class="fa fa-file-pdf-o"></i> PDF</a></li>
<li id="printButton"><a href="#"><i class="fa fa-print"></i> Print</a></li>
</ul>
</div>
</template>
<script>
export default {
props: [],
data() {
return {};
}
};
</script>
...@@ -5,42 +5,42 @@ ...@@ -5,42 +5,42 @@
</template> </template>
<script> <script>
export default { export default {
props: ['message' , 'type'], props: ["message", "type"],
data() {
return {
body: '',
typeClass: '',
show: false
}
},
created() { data() {
var context = this; return {
if(this.message && this.type) { body: "",
this.flash(this.message, this.type); typeClass: "",
} show: false
};
},
window.events.$on('flash', function(message, type) { created() {
context.flash(message, type); var context = this;
}); if (this.message && this.type) {
}, this.flash(this.message, this.type);
}
window.events.$on("flash", function(message, type) {
context.flash(message, type);
});
},
methods: { methods: {
flash(message, type) { flash(message, type) {
this.body = message; this.body = message;
this.typeClass = "alert alert-" + type; this.typeClass = "alert alert-" + type;
this.show = true; this.show = true;
this.hide(); this.hide();
}, },
hide() { hide() {
setTimeout(() => { setTimeout(() => {
this.show = false; this.show = false;
}, 3000); }, 3000);
}
}
} }
}
};
</script> </script>
<!--Action Button--> <!--Action Button-->
@if(Active::checkUriPattern('admin/access/permission')) @if(Active::checkUriPattern('admin/access/permission'))
<div class="btn-group"> <export-component></export-component>
<button type="button" class="btn btn-warning btn-flat dropdown-toggle" data-toggle="dropdown">Export @endif
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li id="copyButton"><a href="#"><i class="fa fa-clone"></i> Copy</a></li>
<li id="csvButton"><a href="#"><i class="fa fa-file-text-o"></i> CSV</a></li>
<li id="excelButton"><a href="#"><i class="fa fa-file-excel-o"></i> Excel</a></li>
<li id="pdfButton"><a href="#"><i class="fa fa-file-pdf-o"></i> PDF</a></li>
<li id="printButton"><a href="#"><i class="fa fa-print"></i> Print</a></li>
</ul>
</div>
@endif
<!--Action Button--> <!--Action Button-->
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action <button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action
......
<!--Action Button--> <!--Action Button-->
@if(Active::checkUriPattern('admin/blogCategories')) @if(Active::checkUriPattern('admin/blogCategories'))
<div class="btn-group"> <export-component></export-component>
<button type="button" class="btn btn-warning btn-flat dropdown-toggle" data-toggle="dropdown">Export @endif
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li id="copyButton"><a href="#"><i class="fa fa-clone"></i> Copy</a></li>
<li id="csvButton"><a href="#"><i class="fa fa-file-text-o"></i> CSV</a></li>
<li id="excelButton"><a href="#"><i class="fa fa-file-excel-o"></i> Excel</a></li>
<li id="pdfButton"><a href="#"><i class="fa fa-file-pdf-o"></i> PDF</a></li>
<li id="printButton"><a href="#"><i class="fa fa-print"></i> Print</a></li>
</ul>
</div>
@endif
<!--Action Button--> <!--Action Button-->
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action <button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action
......
<!--Action Button--> <!--Action Button-->
@if(Active::checkUriPattern('admin/blogs')) @if(Active::checkUriPattern('admin/blogs'))
<div class="btn-group"> <export-component></export-component>
<button type="button" class="btn btn-warning btn-flat dropdown-toggle" data-toggle="dropdown">Export
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li id="copyButton"><a href="#"><i class="fa fa-clone"></i> Copy</a></li>
<li id="csvButton"><a href="#"><i class="fa fa-file-text-o"></i> CSV</a></li>
<li id="excelButton"><a href="#"><i class="fa fa-file-excel-o"></i> Excel</a></li>
<li id="pdfButton"><a href="#"><i class="fa fa-file-pdf-o"></i> PDF</a></li>
<li id="printButton"><a href="#"><i class="fa fa-print"></i> Print</a></li>
</ul>
</div>
@endif @endif
<!--Action Button--> <!--Action Button-->
<div class="btn-group"> <div class="btn-group">
......
<!--Action Button--> <!--Action Button-->
@if(Active::checkUriPattern('admin/blogTags')) @if(Active::checkUriPattern('admin/blogTags'))
<div class="btn-group"> <export-component></export-component>
<button type="button" class="btn btn-warning btn-flat dropdown-toggle" data-toggle="dropdown">Export @endif
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li id="copyButton"><a href="#"><i class="fa fa-clone"></i> Copy</a></li>
<li id="csvButton"><a href="#"><i class="fa fa-file-text-o"></i> CSV</a></li>
<li id="excelButton"><a href="#"><i class="fa fa-file-excel-o"></i> Excel</a></li>
<li id="pdfButton"><a href="#"><i class="fa fa-file-pdf-o"></i> PDF</a></li>
<li id="printButton"><a href="#"><i class="fa fa-print"></i> Print</a></li>
</ul>
</div>
@endif
<!--Action Button--> <!--Action Button-->
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action <button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<h3 class="box-title">{{ trans('labels.backend.faqs.management') }}</h3> <h3 class="box-title">{{ trans('labels.backend.faqs.management') }}</h3>
<div class="box-tools pull-right"> <div class="box-tools pull-right">
@include('backend.includes.partials.faqs-header-buttons') @include('backend.faqs.partials.faqs-header-buttons')
</div> </div>
</div><!-- /.box-header --> </div><!-- /.box-header -->
......
<!--Action Button--> <!--Action Button-->
@if(Active::checkUriPattern('admin/faqs')) @if(Active::checkUriPattern('admin/faqs'))
<div class="btn-group"> <export-component></export-component>
<button type="button" class="btn btn-warning btn-flat dropdown-toggle" data-toggle="dropdown">Export @endif
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li id="copyButton"><a href="#"><i class="fa fa-clone"></i> Copy</a></li>
<li id="csvButton"><a href="#"><i class="fa fa-file-text-o"></i> CSV</a></li>
<li id="excelButton"><a href="#"><i class="fa fa-file-excel-o"></i> Excel</a></li>
<li id="pdfButton"><a href="#"><i class="fa fa-file-pdf-o"></i> PDF</a></li>
<li id="printButton"><a href="#"><i class="fa fa-print"></i> Print</a></li>
</ul>
</div>
@endif
<!--Action Button--> <!--Action Button-->
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action <button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action
......
<!--Action Button--> <!--Action Button-->
@if(Active::checkUriPattern('admin/menus')) @if(Active::checkUriPattern('admin/menus'))
<div class="btn-group"> <export-component></export-component>
<button type="button" class="btn btn-warning btn-flat dropdown-toggle" data-toggle="dropdown">Export @endif
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li id="copyButton"><a href="#"><i class="fa fa-clone"></i> Copy</a></li>
<li id="csvButton"><a href="#"><i class="fa fa-file-text-o"></i> CSV</a></li>
<li id="excelButton"><a href="#"><i class="fa fa-file-excel-o"></i> Excel</a></li>
<li id="pdfButton"><a href="#"><i class="fa fa-file-pdf-o"></i> PDF</a></li>
<li id="printButton"><a href="#"><i class="fa fa-print"></i> Print</a></li>
</ul>
</div>
@endif
<!--Action Button--> <!--Action Button-->
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action <button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action
......
<!--Action Button--> <!--Action Button-->
@if(Active::checkUriPattern('admin/pages')) @if(Active::checkUriPattern('admin/pages'))
<div class="btn-group"> <export-component></export-component>
<button type="button" class="btn btn-warning btn-flat dropdown-toggle" data-toggle="dropdown">Export @endif
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li id="copyButton"><a href="#"><i class="fa fa-clone"></i> Copy</a></li>
<li id="csvButton"><a href="#"><i class="fa fa-file-text-o"></i> CSV</a></li>
<li id="excelButton"><a href="#"><i class="fa fa-file-excel-o"></i> Excel</a></li>
<li id="pdfButton"><a href="#"><i class="fa fa-file-pdf-o"></i> PDF</a></li>
<li id="printButton"><a href="#"><i class="fa fa-print"></i> Print</a></li>
</ul>
</div>
@endif
<!--Action Button--> <!--Action Button-->
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action <button type="button" class="btn btn-primary btn-flat dropdown-toggle" data-toggle="dropdown">Action
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment