.shortcut-buttons-flatpickr-label{-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:0 5px}.shortcut-buttons-flatpickr-wrapper>.shortcut-buttons-flatpickr-buttons{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap}.shortcut-buttons-flatpickr-buttons>.shortcut-buttons-flatpickr-button{margin:2px}.light.shortcut-buttons-flatpickr-wrapper{background-color:#eceef1;color:#5a6171}
--------------------------------------------------------------------------------
/resources/assets/font-awesome/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/font-awesome/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/resources/assets/font-awesome/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/font-awesome/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/resources/assets/font-awesome/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/font-awesome/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/resources/assets/font-awesome/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/font-awesome/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/resources/assets/font-awesome/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/font-awesome/fonts/fontawesome-webfont.woff2
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Bold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Bold.ttf
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Bold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Bold.woff
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Bold.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Bold.woff2
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Italic.ttf
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Italic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Italic.woff
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Italic.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Italic.woff2
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light-Italic.ttf
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light-Italic.woff2
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light.ttf
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light.woff
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Light.woff2
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.ttf
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold-Italic.woff2
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold.ttf
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold.woff
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro-Semibold.woff2
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro.eot
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro.ttf
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro.woff
--------------------------------------------------------------------------------
/resources/assets/google-fonts/fonts/Source-Sans-Pro.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/resources/assets/google-fonts/fonts/Source-Sans-Pro.woff2
--------------------------------------------------------------------------------
/resources/views/actions/form/checkbox.blade.php:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/resources/views/actions/form/date.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | @include('admin::actions.form.help-block')
5 |
--------------------------------------------------------------------------------
/resources/views/actions/form/file.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | @include('admin::actions.form.help-block')
5 |
6 |
--------------------------------------------------------------------------------
/resources/views/actions/form/help-block.blade.php:
--------------------------------------------------------------------------------
1 | @if($help)
2 |
3 | {!! \Illuminate\Support\Arr::get($help, 'text') !!}
4 |
5 | @endif
--------------------------------------------------------------------------------
/resources/views/actions/form/hidden.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/resources/views/actions/form/muitplefile.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | @include('admin::actions.form.help-block')
5 |
6 |
--------------------------------------------------------------------------------
/resources/views/actions/form/multipleselect.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 | @include('admin::actions.form.help-block')
11 |
12 |
13 |
--------------------------------------------------------------------------------
/resources/views/actions/form/radio.blade.php:
--------------------------------------------------------------------------------
1 |
14 |
--------------------------------------------------------------------------------
/resources/views/actions/form/select.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
11 | @include('admin::actions.form.help-block')
12 |
13 |
14 |
--------------------------------------------------------------------------------
/resources/views/actions/form/text.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | @include('admin::actions.form.help-block')
5 |
--------------------------------------------------------------------------------
/resources/views/actions/form/textarea.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | @include('admin::actions.form.help-block')
5 |
--------------------------------------------------------------------------------
/resources/views/components/refresh-btn.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
12 |
--------------------------------------------------------------------------------
/resources/views/dashboard/environment.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | @foreach($envs as $env)
18 |
19 | {{ $env['name'] }} |
20 | {{ $env['value'] }} |
21 |
22 | @endforeach
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/resources/views/dashboard/title.blade.php:
--------------------------------------------------------------------------------
1 |
27 |
28 |
29 | Laravel-admin
30 |
31 |
--------------------------------------------------------------------------------
/resources/views/filter/between.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/filter/checkbox.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/filter/gt.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/filter/lt.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/filter/multipleselect.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/filter/radio.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/filter/select.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/filter/text.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/filter/where.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/form/belongsto.blade.php:
--------------------------------------------------------------------------------
1 |
29 |
--------------------------------------------------------------------------------
/resources/views/form/button.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/form/captcha.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/form/display.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/form/editor.blade.php:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/resources/views/form/embeds.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
22 |
23 |
--------------------------------------------------------------------------------
/resources/views/form/error.blade.php:
--------------------------------------------------------------------------------
1 | @if(is_array($errorKey))
2 | @foreach($errorKey as $key => $col)
3 | @if($errors->has($col.$key))
4 | @foreach($errors->get($col.$key) as $message)
5 |
6 | @endforeach
7 | @endif
8 | @endforeach
9 | @else
10 | @if($errors->has($errorKey))
11 | @foreach($errors->get($errorKey) as $message)
12 |
13 | @endforeach
14 | @endif
15 | @endif
--------------------------------------------------------------------------------
/resources/views/form/file.blade.php:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/resources/views/form/help-block.blade.php:
--------------------------------------------------------------------------------
1 | @if($help)
2 |
3 | {!! \Illuminate\Support\Arr::get($help, 'text') !!}
4 |
5 | @endif
--------------------------------------------------------------------------------
/resources/views/form/hidden.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/resources/views/form/id.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/form/input.blade.php:
--------------------------------------------------------------------------------
1 |
33 |
--------------------------------------------------------------------------------
/resources/views/form/listbox.blade.php:
--------------------------------------------------------------------------------
1 |
20 |
--------------------------------------------------------------------------------
/resources/views/form/map.blade.php:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/resources/views/form/multiplefile.blade.php:
--------------------------------------------------------------------------------
1 |
18 |
--------------------------------------------------------------------------------
/resources/views/form/multipleselect.blade.php:
--------------------------------------------------------------------------------
1 |
20 |
--------------------------------------------------------------------------------
/resources/views/form/radio.blade.php:
--------------------------------------------------------------------------------
1 |
25 |
--------------------------------------------------------------------------------
/resources/views/form/radiobutton.blade.php:
--------------------------------------------------------------------------------
1 |
21 |
--------------------------------------------------------------------------------
/resources/views/form/rate.blade.php:
--------------------------------------------------------------------------------
1 |
18 |
--------------------------------------------------------------------------------
/resources/views/form/row.blade.php:
--------------------------------------------------------------------------------
1 |
2 | @foreach($fields as $field)
3 |
4 | {!! $field['element']->render() !!}
5 |
6 | @endforeach
7 |
--------------------------------------------------------------------------------
/resources/views/form/slider.blade.php:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/resources/views/form/switchfield.blade.php:
--------------------------------------------------------------------------------
1 |
16 |
--------------------------------------------------------------------------------
/resources/views/form/tab.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
13 |
14 |
15 | @foreach($tabObj->getTabs() as $tab)
16 |
17 | @foreach($tab['fields'] as $field)
18 | {!! $field->render() !!}
19 | @endforeach
20 |
21 | @endforeach
22 |
23 |
24 |
--------------------------------------------------------------------------------
/resources/views/form/tags.blade.php:
--------------------------------------------------------------------------------
1 |
22 |
--------------------------------------------------------------------------------
/resources/views/form/textarea.blade.php:
--------------------------------------------------------------------------------
1 |
17 |
--------------------------------------------------------------------------------
/resources/views/grid/displayer/table.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | @foreach($titles as $column => $title)
5 | {{ $title }} |
6 | @endforeach
7 |
8 |
9 |
10 | @foreach($data as $datum)
11 |
12 | @foreach($datum as $key => $value)
13 | {{ $value }} |
14 | @endforeach
15 |
16 | @endforeach
17 |
18 |
--------------------------------------------------------------------------------
/resources/views/grid/inline-edit/input.blade.php:
--------------------------------------------------------------------------------
1 | @extends('admin::grid.inline-edit.comm')
2 |
3 | @section('field')
4 |
5 | @endsection
6 |
7 | @section('assert')
8 |
21 |
22 | {{--after submit--}}
23 |
28 | @endsection
29 |
30 |
31 |
--------------------------------------------------------------------------------
/resources/views/grid/inline-edit/textarea.blade.php:
--------------------------------------------------------------------------------
1 | @extends('admin::grid.inline-edit.comm')
2 |
3 | @section('field')
4 |
5 | @endsection
6 |
7 | @section('assert')
8 |
18 |
19 | {{--after submit--}}
20 |
25 | @endsection
26 |
27 |
28 |
--------------------------------------------------------------------------------
/resources/views/grid/quick-create/date.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/resources/views/grid/quick-create/form.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{ __('admin.quick_create') }}
7 |
8 |
9 |
18 | |
19 |
20 |
--------------------------------------------------------------------------------
/resources/views/grid/quick-create/multipleselect.blade.php:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/resources/views/grid/quick-create/select.blade.php:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/resources/views/grid/quick-create/text.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/resources/views/grid/quick-search.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/grid/total-row.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | @foreach($columns as $column)
4 | {!! $column['value'] !!} |
5 | @endforeach
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/resources/views/partials/css.blade.php:
--------------------------------------------------------------------------------
1 | @foreach($css as $c)
2 |
3 | @endforeach
--------------------------------------------------------------------------------
/resources/views/partials/footer.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/resources/views/partials/html.blade.php:
--------------------------------------------------------------------------------
1 | @foreach($html as $item)
2 | {!! $item !!}
3 | @endforeach
4 |
--------------------------------------------------------------------------------
/resources/views/partials/js.blade.php:
--------------------------------------------------------------------------------
1 | @foreach($js as $j)
2 |
3 | @endforeach
--------------------------------------------------------------------------------
/resources/views/partials/script.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/resources/views/partials/style.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/resources/views/partials/toastr.blade.php:
--------------------------------------------------------------------------------
1 | @if(Session::has('toastr'))
2 | @php
3 | $toastr = Session::pull('toastr');
4 | $type = \Illuminate\Support\Arr::get($toastr->get('type'), 0, 'success');
5 | $message = \Illuminate\Support\Arr::get($toastr->get('message'), 0, '');
6 | $options = json_encode($toastr->get('options', []));
7 | @endphp
8 |
13 | @endif
--------------------------------------------------------------------------------
/resources/views/show.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! $panel !!}
4 |
5 |
6 |
7 | @foreach($relations as $relation)
8 | {!! $relation->render() !!}
9 | @endforeach
10 |
11 |
--------------------------------------------------------------------------------
/resources/views/show/field.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/show/panel.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/tree/branch.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 | {!! $branchCallback($branch) !!}
4 |
5 |
6 |
7 |
8 |
9 | @if(isset($branch['children']))
10 |
11 | @foreach($branch['children'] as $branch)
12 | @include($branchView, $branch)
13 | @endforeach
14 |
15 | @endif
16 |
--------------------------------------------------------------------------------
/resources/views/widgets/alert.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{ $title }}
4 | {!! $content !!}
5 |
--------------------------------------------------------------------------------
/resources/views/widgets/box.blade.php:
--------------------------------------------------------------------------------
1 |
2 | @if($title || $tools)
3 |
11 | @endif
12 |
13 | {!! $content !!}
14 |
15 | @if($footer)
16 |
19 | @endif
20 |
21 | {{-- 由于widget box 有可能会用于expand,加载完页面后还没有对应的html,导致script失败,故只能和html写在一起。 --}}
22 |
--------------------------------------------------------------------------------
/resources/views/widgets/callout.blade.php:
--------------------------------------------------------------------------------
1 |
2 | @if(isset($title))
3 |
{{ $title }}
4 | @endif
5 | {!! $content !!}
6 |
--------------------------------------------------------------------------------
/resources/views/widgets/collapse.blade.php:
--------------------------------------------------------------------------------
1 |
2 | @foreach($items as $key => $item)
3 |
4 |
11 |
12 |
13 | {!! $item['content'] !!}
14 |
15 |
16 |
17 | @endforeach
18 |
19 |
20 |
--------------------------------------------------------------------------------
/resources/views/widgets/info-box.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
{{ $info }}
4 |
5 |
{{ $name }}
6 |
7 |
8 |
9 |
10 |
14 |
--------------------------------------------------------------------------------
/resources/views/widgets/table.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | @foreach($headers as $header)
5 | {{ $header }} |
6 | @endforeach
7 |
8 |
9 |
10 | @foreach($rows as $row)
11 |
12 | @foreach($row as $item)
13 | {!! $item !!} |
14 | @endforeach
15 |
16 | @endforeach
17 |
18 |
--------------------------------------------------------------------------------
/src/Actions/Interactor/Interactor.php:
--------------------------------------------------------------------------------
1 | action = $action;
33 | }
34 |
35 | /**
36 | * @return mixed
37 | */
38 | abstract public function addScript();
39 | }
40 |
--------------------------------------------------------------------------------
/src/Actions/SweatAlert2.php:
--------------------------------------------------------------------------------
1 | type = $type;
26 | $this->title = $title;
27 |
28 | return $this;
29 | }
30 |
31 | /**
32 | * @return array
33 | */
34 | public function getOptions()
35 | {
36 | return [
37 | 'swal' => [
38 | 'type' => $this->type,
39 | 'title' => $this->title,
40 | ],
41 | ];
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/Console/ControllerCommand.php:
--------------------------------------------------------------------------------
1 | argument('model');
31 | }
32 |
33 | /**
34 | * @throws \ReflectionException
35 | *
36 | * @return string
37 | */
38 | protected function getControllerName()
39 | {
40 | $name = (new \ReflectionClass($this->modelName))->getShortName();
41 |
42 | return $name.'Controller';
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Console/MenuCommand.php:
--------------------------------------------------------------------------------
1 | option('force');
31 | $options = ['--provider' => 'Encore\Admin\AdminServiceProvider'];
32 | if ($force == true) {
33 | $options['--force'] = true;
34 | }
35 | $this->call('vendor:publish', $options);
36 | $this->call('view:clear');
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/Console/stubs/AuthController.stub:
--------------------------------------------------------------------------------
1 | response()->success('Success message...')->refresh();
17 | }
18 | DummyInteractor
19 | public function html()
20 | {
21 | return <<DummyName
23 | HTML;
24 | }
25 | }
--------------------------------------------------------------------------------
/src/Console/stubs/blank.stub:
--------------------------------------------------------------------------------
1 |
6 | *
7 | * Bootstraper for Admin.
8 | *
9 | * Here you can remove builtin form field:
10 | * Encore\Admin\Form::forget(['map', 'editor']);
11 | *
12 | * Or extend custom form field:
13 | * Encore\Admin\Form::extend('php', PHPEditor::class);
14 | *
15 | * Or require js and css assets:
16 | * Admin::css('/packages/prettydocs/css/styles.css');
17 | * Admin::js('/packages/prettydocs/js/main.js');
18 | *
19 | */
20 |
21 | Encore\Admin\Form::forget(['map', 'editor']);
22 |
--------------------------------------------------------------------------------
/src/Console/stubs/extension/.gitignore.stub:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | phpunit.phar
3 | /vendor
4 | composer.phar
5 | composer.lock
6 | *.project
7 | .idea/
--------------------------------------------------------------------------------
/src/Console/stubs/extension/README.md.stub:
--------------------------------------------------------------------------------
1 | laravel-admin extension
2 | ======
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/Console/stubs/extension/composer.json.stub:
--------------------------------------------------------------------------------
1 | {
2 | "name": ":package",
3 | "description": "description...",
4 | "type": "library",
5 | "keywords": ["laravel-admin", "extension"],
6 | "homepage": "https://github.com/:package",
7 | "license": "MIT",
8 | "authors": [
9 | {
10 | "name": "your name",
11 | "email": "your email"
12 | }
13 | ],
14 | "require": {
15 | "php": ">=7.0.0",
16 | "encore/laravel-admin": "~1.6"
17 | },
18 | "require-dev": {
19 | "phpunit/phpunit": "~6.0"
20 | },
21 | "autoload": {
22 | "psr-4": {
23 | ":namespace": "src/"
24 | }
25 | },
26 | "extra": {
27 | "laravel": {
28 | "providers": [
29 | ":namespace:class_nameServiceProvider"
30 | ]
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Console/stubs/extension/controller.stub:
--------------------------------------------------------------------------------
1 | title('Title')
14 | ->description('Description')
15 | ->body(view(':base_package::index'));
16 | }
17 | }
--------------------------------------------------------------------------------
/src/Console/stubs/extension/extension.stub:
--------------------------------------------------------------------------------
1 | ':title',
17 | 'path' => ':path',
18 | 'icon' => 'fa-gears',
19 | ];
20 | }
--------------------------------------------------------------------------------
/src/Console/stubs/extension/routes.stub:
--------------------------------------------------------------------------------
1 | views()) {
19 | $this->loadViewsFrom($views, ':base_package');
20 | }
21 |
22 | if ($this->app->runningInConsole() && $assets = $extension->assets()) {
23 | $this->publishes(
24 | [$assets => public_path('vendor/:package')],
25 | ':base_package'
26 | );
27 | }
28 |
29 | $this->app->booted(function () {
30 | :class_name::routes(__DIR__.'/../routes/web.php');
31 | });
32 | }
33 | }
--------------------------------------------------------------------------------
/src/Console/stubs/extension/view.stub:
--------------------------------------------------------------------------------
1 | Welcome to laravel-admin
--------------------------------------------------------------------------------
/src/Console/stubs/grid-batch-action.stub:
--------------------------------------------------------------------------------
1 | response()->success('Success message...')->refresh();
19 | }
20 | DummyInteractor
21 | }
--------------------------------------------------------------------------------
/src/Console/stubs/grid-row-action.stub:
--------------------------------------------------------------------------------
1 | response()->success('Success message.')->refresh();
17 | }
18 | DummyInteractor
19 | }
--------------------------------------------------------------------------------
/src/Console/stubs/routes.stub:
--------------------------------------------------------------------------------
1 | config('admin.route.prefix'),
9 | 'namespace' => config('admin.route.namespace'),
10 | 'middleware' => config('admin.route.middleware'),
11 | 'as' => config('admin.route.prefix') . '.',
12 | ], function (Router $router) {
13 |
14 | $router->get('/', 'HomeController@index')->name('home');
15 |
16 | });
17 |
--------------------------------------------------------------------------------
/src/Console/stubs/step-form.stub:
--------------------------------------------------------------------------------
1 | all());
27 |
28 | admin_success('Processed successfully.');
29 |
30 | return $this->next($request->all());
31 | }
32 |
33 | /**
34 | * Build a form here.
35 | */
36 | public function form()
37 | {
38 | $this->text('name')->rules('required');
39 | $this->email('email')->rules('email');
40 | $this->datetime('created_at');
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/Controllers/HasResourceActions.php:
--------------------------------------------------------------------------------
1 | form()->update($id);
17 | }
18 |
19 | /**
20 | * Store a newly created resource in storage.
21 | *
22 | * @return mixed
23 | */
24 | public function store()
25 | {
26 | return $this->form()->store();
27 | }
28 |
29 | /**
30 | * Remove the specified resource from storage.
31 | *
32 | * @param int $id
33 | *
34 | * @return \Illuminate\Http\Response
35 | */
36 | public function destroy($id)
37 | {
38 | return $this->form()->destroy($id);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/Controllers/ModelForm.php:
--------------------------------------------------------------------------------
1 | pushField($group = new Field\CascadeGroup($dependency));
16 |
17 | call_user_func($closure, $this);
18 |
19 | $group->end();
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Form/Field/Button.php:
--------------------------------------------------------------------------------
1 | class = 'btn-info';
14 |
15 | return $this;
16 | }
17 |
18 | public function on($event, $callback)
19 | {
20 | $this->script = <<getElementClassSelector()}').on('$event', function() {
23 | $callback
24 | });
25 |
26 | EOT;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Form/Field/CheckboxCard.php:
--------------------------------------------------------------------------------
1 | addStyle();
40 |
41 | return parent::render();
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/Form/Field/Datetime.php:
--------------------------------------------------------------------------------
1 | defaultAttribute('style', 'width: 160px');
12 |
13 | return parent::render();
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/Form/Field/DatetimeRange.php:
--------------------------------------------------------------------------------
1 | 'decimal',
18 | 'rightAlign' => true,
19 | ];
20 |
21 | public function render()
22 | {
23 | $this->inputmask($this->options);
24 |
25 | $this->prepend('')
26 | ->defaultAttribute('style', 'width: 130px');
27 |
28 | return parent::render();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/Form/Field/Display.php:
--------------------------------------------------------------------------------
1 | title = $title;
14 | }
15 |
16 | public function render()
17 | {
18 | if (empty($this->title)) {
19 | return '
';
20 | }
21 |
22 | return <<
24 |
25 | {$this->title}
26 |
27 |
28 | HTML;
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/Form/Field/Editor.php:
--------------------------------------------------------------------------------
1 | script = "CKEDITOR.replace('{$this->id}');";
16 |
17 | return parent::render();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/Form/Field/Email.php:
--------------------------------------------------------------------------------
1 | prepend('')
12 | ->defaultAttribute('type', 'email');
13 |
14 | return parent::render();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/Form/Field/Hidden.php:
--------------------------------------------------------------------------------
1 | script = <<getElementClassSelector()}').iconpicker({placement:'bottomLeft'});
22 |
23 | EOT;
24 |
25 | $this->prepend('')
26 | ->defaultAttribute('style', 'width: 140px');
27 |
28 | return parent::render();
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/Form/Field/Id.php:
--------------------------------------------------------------------------------
1 | 'ip',
20 | ];
21 |
22 | public function render()
23 | {
24 | $this->inputmask($this->options);
25 |
26 | $this->prepend('')
27 | ->defaultAttribute('style', 'width: 130px');
28 |
29 | return parent::render();
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/Form/Field/Mobile.php:
--------------------------------------------------------------------------------
1 | '99999999999',
18 | ];
19 |
20 | public function render()
21 | {
22 | $this->inputmask($this->options);
23 |
24 | $this->prepend('')
25 | ->defaultAttribute('style', 'width: 150px');
26 |
27 | return parent::render();
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/Form/Field/Month.php:
--------------------------------------------------------------------------------
1 | prepend('')
10 | ->defaultAttribute('type', 'password');
11 |
12 | return parent::render();
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/Form/Field/RadioButton.php:
--------------------------------------------------------------------------------
1 | addScript();
32 |
33 | $this->addCascadeScript();
34 |
35 | $this->addVariables([
36 | 'options' => $this->options,
37 | 'checked' => $this->checked,
38 | ]);
39 |
40 | return parent::fieldRender();
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/Form/Field/RadioCard.php:
--------------------------------------------------------------------------------
1 | addStyle();
40 |
41 | return parent::render();
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/Form/Field/Rate.php:
--------------------------------------------------------------------------------
1 | prepend('')
10 | ->append('%')
11 | ->defaultAttribute('style', 'text-align:right;')
12 | ->defaultAttribute('placeholder', 0);
13 |
14 | return parent::render();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/Form/Field/Slider.php:
--------------------------------------------------------------------------------
1 | 'single',
20 | 'prettify' => false,
21 | 'hasGrid' => true,
22 | ];
23 |
24 | public function render()
25 | {
26 | $option = json_encode($this->options);
27 |
28 | $this->script = "$('{$this->getElementClassSelector()}').ionRangeSlider($option);";
29 |
30 | return parent::render();
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/Form/Field/Time.php:
--------------------------------------------------------------------------------
1 | prepend('')
12 | ->defaultAttribute('style', 'width: 150px');
13 |
14 | return parent::render();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/Form/Field/TimeRange.php:
--------------------------------------------------------------------------------
1 | options = collect(DateTimeZone::listIdentifiers(DateTimeZone::ALL))->mapWithKeys(function ($timezone) {
14 | return [$timezone => $timezone];
15 | })->toArray();
16 |
17 | return parent::render();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/src/Form/Field/Url.php:
--------------------------------------------------------------------------------
1 | prepend('')
12 | ->defaultAttribute('type', 'url');
13 |
14 | return parent::render();
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/Form/Field/Year.php:
--------------------------------------------------------------------------------
1 | getResource()}/{$this->getKey()}/edit";
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Grid/Actions/Show.php:
--------------------------------------------------------------------------------
1 | getResource()}/{$this->getKey()}";
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Grid/Concerns/CanDoubleClick.php:
--------------------------------------------------------------------------------
1 | tableID}>tbody>tr', function(e) {
18 | var url = "{$this->resource()}/"+$(this).data('key')+"/edit";
19 | $.admin.redirect(url);
20 | });
21 | SCRIPT;
22 | Admin::script($script);
23 |
24 | return $this;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/Grid/Concerns/CanFixColumns.php:
--------------------------------------------------------------------------------
1 | fixColumns = new FixColumns($this, $head, $tail);
22 |
23 | $this->rendering($this->fixColumns->apply());
24 | }
25 |
26 | /**
27 | * @return Collection
28 | */
29 | public function leftVisibleColumns()
30 | {
31 | return $this->fixColumns->leftColumns();
32 | }
33 |
34 | /**
35 | * @return Collection
36 | */
37 | public function rightVisibleColumns()
38 | {
39 | return $this->fixColumns->rightColumns();
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Grid/Concerns/CanFixHeader.php:
--------------------------------------------------------------------------------
1 | footer;
26 | }
27 |
28 | $this->footer = $closure;
29 |
30 | return $this;
31 | }
32 |
33 | /**
34 | * Render grid footer.
35 | *
36 | * @return string
37 | */
38 | public function renderFooter()
39 | {
40 | if (!$this->footer) {
41 | return '';
42 | }
43 |
44 | return (new Footer($this))->render();
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Grid/Concerns/HasHeader.php:
--------------------------------------------------------------------------------
1 | header;
26 | }
27 |
28 | $this->header = $closure;
29 |
30 | return $this;
31 | }
32 |
33 | /**
34 | * @return string
35 | */
36 | public function renderHeader()
37 | {
38 | if (!$this->header) {
39 | return '';
40 | }
41 |
42 | return (new Header($this))->render();
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Badge.php:
--------------------------------------------------------------------------------
1 | value instanceof Arrayable) {
13 | $this->value = $this->value->toArray();
14 | }
15 |
16 | return collect((array) $this->value)->map(function ($name) use ($style) {
17 | if (is_array($style)) {
18 | $style = Arr::get($style, $this->getColumn()->getOriginal(), 'red');
19 | }
20 |
21 | return "$name";
22 | })->implode(' ');
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Button.php:
--------------------------------------------------------------------------------
1 | map(function ($style) {
10 | return 'btn-'.$style;
11 | })->implode(' ');
12 |
13 | return "{$this->value}";
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Checkbox.php:
--------------------------------------------------------------------------------
1 | $this->getKey(),
14 | 'name' => $this->getPayloadName(),
15 | 'resource' => $this->getResource(),
16 | 'trigger' => "ie-trigger-{$this->getClassName()}",
17 | 'target' => "ie-content-{$this->getClassName()}-{$this->getKey()}",
18 | 'value' => json_encode($this->getValue()),
19 | 'display' => implode(';', Arr::only($options, $this->getValue())),
20 | 'options' => $options,
21 | ]);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/ContextMenuActions.php:
--------------------------------------------------------------------------------
1 | $this->getKey(),
13 | 'value' => $this->getValue(),
14 | 'display' => $this->getValue(),
15 | 'name' => $this->getPayloadName(),
16 | 'resource' => $this->getResource(),
17 | 'trigger' => "ie-trigger-{$this->getClassName()}",
18 | 'target' => "ie-template-{$this->getClassName()}",
19 |
20 | 'format' => $format,
21 | 'locale' => config('app.locale'),
22 | ]);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Image.php:
--------------------------------------------------------------------------------
1 | value instanceof Arrayable) {
13 | $this->value = $this->value->toArray();
14 | }
15 |
16 | return collect((array) $this->value)->filter()->map(function ($path) use ($server, $width, $height) {
17 | if (url()->isValidUrl($path) || strpos($path, 'data:image') === 0) {
18 | $src = $path;
19 | } elseif ($server) {
20 | $src = rtrim($server, '/').'/'.ltrim($path, '/');
21 | } else {
22 | $src = Storage::disk(config('admin.upload.disk'))->url($path);
23 | }
24 |
25 | return "
";
26 | })->implode(' ');
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Input.php:
--------------------------------------------------------------------------------
1 | $this->getKey(),
13 | 'value' => $this->getValue(),
14 | 'display' => $this->getValue(),
15 | 'name' => $this->getPayloadName(),
16 | 'resource' => $this->getResource(),
17 | 'trigger' => "ie-trigger-{$this->getClassName()}",
18 | 'target' => "ie-template-{$this->getClassName()}",
19 | 'mask' => $mask,
20 | ]);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Link.php:
--------------------------------------------------------------------------------
1 | bindTo($this->row);
11 | $href = call_user_func_array($callback, [$this->row]);
12 | } else {
13 | $href = $callback ?: $this->value;
14 | }
15 |
16 | return "{$this->value}";
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/MultipleSelect.php:
--------------------------------------------------------------------------------
1 | $this->getKey(),
14 | 'name' => $this->getPayloadName(),
15 | 'value' => json_encode($this->getValue()),
16 | 'resource' => $this->getResource(),
17 | 'trigger' => "ie-trigger-{$this->getClassName()}",
18 | 'target' => "ie-template-{$this->getClassName()}",
19 | 'display' => implode(';', Arr::only($options, $this->getValue())),
20 | 'options' => $options,
21 | ]);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Prefix.php:
--------------------------------------------------------------------------------
1 | call($this->row, $this->getValue(), $this->getColumn()->getOriginal());
11 | }
12 |
13 | return <<getValue()}
15 | HTML;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/ProgressBar.php:
--------------------------------------------------------------------------------
1 | map(function ($style) {
10 | return 'progress-bar-'.$style;
11 | })->implode(' ');
12 |
13 | $this->value = (int) $this->value;
14 |
15 | return <<
17 | {$this->value}%
18 |
22 |
23 | EOT;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Radio.php:
--------------------------------------------------------------------------------
1 | $this->getKey(),
14 | 'name' => $this->getPayloadName(),
15 | 'value' => $this->getValue(),
16 | 'resource' => $this->getResource(),
17 | 'trigger' => "ie-trigger-{$this->getClassName()}",
18 | 'target' => "ie-template-{$this->getClassName()}",
19 | 'display' => Arr::get($options, $this->getValue(), ''),
20 | 'options' => $options,
21 | ]);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Secret.php:
--------------------------------------------------------------------------------
1 | addScript();
12 |
13 | $dots = str_repeat('*', $dotCount);
14 |
15 | return <<
17 |
18 |
19 | {$dots}
20 | {$this->getValue()}
21 |
22 | HTML;
23 | }
24 |
25 | protected function addScript()
26 | {
27 | $script = <<<'SCRIPT'
28 | $('.secret-wrapper i').click(function () {
29 | $(this).toggleClass('fa-eye fa-eye-slash').parent().find('.secret-placeholder,.secret-content').toggle();
30 | });
31 | SCRIPT;
32 |
33 | Admin::script($script);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Select.php:
--------------------------------------------------------------------------------
1 | $this->getKey(),
14 | 'value' => $this->getValue(),
15 | 'display' => Arr::get($options, $this->getValue(), ''),
16 | 'name' => $this->getPayloadName(),
17 | 'resource' => $this->getResource(),
18 | 'trigger' => "ie-trigger-{$this->getClassName()}",
19 | 'target' => "ie-template-{$this->getClassName()}",
20 | 'options' => $options,
21 | ]);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Suffix.php:
--------------------------------------------------------------------------------
1 | call($this->row, $this->getValue());
11 | }
12 |
13 | return <<getValue()}{$delimiter}{$suffix}
15 | HTML;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Textarea.php:
--------------------------------------------------------------------------------
1 | $this->getKey(),
13 | 'value' => $this->getValue(),
14 | 'display' => $this->getValue(),
15 | 'name' => $this->getPayloadName(),
16 | 'resource' => $this->getResource(),
17 | 'trigger' => "ie-trigger-{$this->getClassName()}",
18 | 'target' => "ie-template-{$this->getClassName()}",
19 | 'rows' => $rows,
20 | ]);
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Grid/Displayers/Upload.php:
--------------------------------------------------------------------------------
1 | $this->getKey(),
13 | 'name' => $this->getPayloadName(),
14 | 'value' => $this->getValue(),
15 | 'target' => "inline-upload-{$this->getKey()}",
16 | 'resource' => $this->getResource(),
17 | 'multiple' => $multiple,
18 | ]);
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/src/Grid/Exporters/ExporterInterface.php:
--------------------------------------------------------------------------------
1 | {$this->fieldName}();
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/Grid/Filter/Day.php:
--------------------------------------------------------------------------------
1 | column);
24 |
25 | if (is_null($value)) {
26 | return;
27 | }
28 |
29 | $this->value = $value;
30 |
31 | return $this->buildCondition($this->column, '>=', $this->value);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Grid/Filter/Hidden.php:
--------------------------------------------------------------------------------
1 | name = $name;
26 |
27 | $this->value = $value;
28 | }
29 |
30 | /**
31 | * {@inheritdoc}
32 | */
33 | public function condition($inputs)
34 | {
35 | }
36 |
37 | /**
38 | * {@inheritdoc}
39 | */
40 | public function render()
41 | {
42 | return "";
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Grid/Filter/Ilike.php:
--------------------------------------------------------------------------------
1 | column);
24 |
25 | if (is_null($value)) {
26 | return;
27 | }
28 |
29 | $this->value = (array) $value;
30 |
31 | return $this->buildCondition($this->column, $this->value);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Grid/Filter/Like.php:
--------------------------------------------------------------------------------
1 | column);
29 |
30 | if (is_array($value)) {
31 | $value = array_filter($value);
32 | }
33 |
34 | if (is_null($value) || empty($value)) {
35 | return;
36 | }
37 |
38 | $this->value = $value;
39 |
40 | $expr = str_replace('{value}', $this->value, $this->exprFormat);
41 |
42 | return $this->buildCondition($this->column, $this->operator, $expr);
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Grid/Filter/Lt.php:
--------------------------------------------------------------------------------
1 | column);
24 |
25 | if (is_null($value)) {
26 | return;
27 | }
28 |
29 | $this->value = $value;
30 |
31 | return $this->buildCondition($this->column, '<=', $this->value);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Grid/Filter/Month.php:
--------------------------------------------------------------------------------
1 | column);
15 |
16 | if (!isset($value)) {
17 | return;
18 | }
19 |
20 | $this->value = $value;
21 |
22 | return $this->buildCondition($this->column, '!=', $this->value);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/Grid/Filter/NotIn.php:
--------------------------------------------------------------------------------
1 | filter->getId()}').iCheck({checkboxClass:'icheckbox_minimal-blue'});";
12 |
13 | Admin::script($script);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/Grid/Filter/StartsWith.php:
--------------------------------------------------------------------------------
1 |
15 |
16 | {$text}
17 |
18 | HTML;
19 |
20 | return $html;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/Grid/Selectable/Checkbox.php:
--------------------------------------------------------------------------------
1 | getAttribute($key);
12 |
13 | return <<
15 | EOT;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/Grid/Selectable/Radio.php:
--------------------------------------------------------------------------------
1 | getAttribute($key);
12 |
13 | return <<
15 | EOT;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/Grid/Tools/FilterButton.php:
--------------------------------------------------------------------------------
1 | grid->getFilter();
16 |
17 | if ($scope = $filter->getCurrentScope()) {
18 | $label = " {$scope->getLabel()} ";
19 | }
20 |
21 | return Admin::component('admin::filter.button', [
22 | 'scopes' => $filter->getScopes(),
23 | 'label' => $label,
24 | 'cancel' => $filter->urlWithoutScopes(),
25 | 'btn_class' => uniqid().'-filter-btn',
26 | 'expand' => $filter->expand,
27 | 'filter_id' => $filter->getFilterID(),
28 | ]);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/src/Layout/Buildable.php:
--------------------------------------------------------------------------------
1 | $path]);
14 |
15 | if ($domain = config('admin.route.domain')) {
16 | config(['session.domain' => $domain]);
17 | }
18 |
19 | return $next($request);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/Show/Divider.php:
--------------------------------------------------------------------------------
1 | ';
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/src/Traits/AdminBuilder.php:
--------------------------------------------------------------------------------
1 | version(), '7.0.0') < 0) {
12 | return parent::serializeDate($date);
13 | }
14 |
15 | return $date->format(Carbon::DEFAULT_TO_STRING_FORMAT);
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/Traits/ShouldSnakeAttributes.php:
--------------------------------------------------------------------------------
1 | model instanceof GridModel) ?
28 | $this->model->eloquent() : $this->model;
29 |
30 | $class = get_class($model);
31 |
32 | return static::$snakeAttributes = $class::$snakeAttributes;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/Widgets/Navbar/Fullscreen.php:
--------------------------------------------------------------------------------
1 | assertFileExists(admin_path());
8 |
9 | $this->assertFileExists(admin_path('Controllers'));
10 |
11 | $this->assertFileExists(admin_path('routes.php'));
12 |
13 | $this->assertFileExists(admin_path('bootstrap.php'));
14 |
15 | $this->assertFileExists(admin_path('Controllers/HomeController.php'));
16 |
17 | $this->assertFileExists(admin_path('Controllers/AuthController.php'));
18 |
19 | $this->assertFileExists(admin_path('Controllers/ExampleController.php'));
20 |
21 | $this->assertFileExists(config_path('admin.php'));
22 |
23 | $this->assertFileExists(public_path('vendor/laravel-admin'));
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/tests/LaravelTest.php:
--------------------------------------------------------------------------------
1 | visit('/')
8 | ->assertResponseStatus(200)
9 | ->see('Laravel');
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/tests/ModelTreeTest.php:
--------------------------------------------------------------------------------
1 | where('uri', '');
18 | }, $rootText);
19 |
20 | $count = Tree::query()->where('uri', '')->count();
21 |
22 | $this->assertEquals(array_shift($options), $rootText);
23 | $this->assertEquals(count($options), $count);
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/tests/assets/test.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeNinja0718/laravel_project/cdcdbaa1347eda00dad2c266d2cefaa923daa29d/tests/assets/test.jpg
--------------------------------------------------------------------------------
/tests/models/File.php:
--------------------------------------------------------------------------------
1 | attributes['pictures'] = json_encode($pictures);
15 | }
16 | }
17 |
18 | public function getPicturesAttribute($pictures)
19 | {
20 | return json_decode($pictures, true) ?: [];
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/tests/models/Profile.php:
--------------------------------------------------------------------------------
1 | belongsTo(User::class, 'user_id');
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/tests/models/Tag.php:
--------------------------------------------------------------------------------
1 | belongsToMany(User::class, 'test_user_tags', 'tag_id', 'user_id');
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/tests/models/Tree.php:
--------------------------------------------------------------------------------
1 | setConnection($connection);
22 |
23 | $this->setTable(config('admin.database.menu_table'));
24 |
25 | parent::__construct($attributes);
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/tests/models/User.php:
--------------------------------------------------------------------------------
1 | 'array'];
14 |
15 | public function profile()
16 | {
17 | return $this->hasOne(Profile::class, 'user_id');
18 | }
19 |
20 | public function getFullNameAttribute()
21 | {
22 | return "{$this->profile['first_name']} {$this->profile['last_name']}";
23 | }
24 |
25 | public function getPositionAttribute()
26 | {
27 | return "{$this->profile->latitude} {$this->profile->longitude}";
28 | }
29 |
30 | public function tags()
31 | {
32 | return $this->belongsToMany(Tag::class, 'test_user_tags', 'user_id', 'tag_id');
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/tests/routes.php:
--------------------------------------------------------------------------------
1 | config('admin.route.prefix'),
5 | 'namespace' => 'Tests\Controllers',
6 | 'middleware' => ['web', 'admin'],
7 | ], function ($router) {
8 | $router->resource('images', ImageController::class);
9 | $router->resource('multiple-images', MultipleImageController::class);
10 | $router->resource('files', FileController::class);
11 | $router->resource('users', UserController::class);
12 | });
13 |
--------------------------------------------------------------------------------
/tests/seeds/UserTableSeeder.php:
--------------------------------------------------------------------------------
1 | create()
13 | ->each(function ($u) {
14 | $u->profile()->save(factory(\Tests\Models\Profile::class)->make());
15 | $u->tags()->saveMany(factory(\Tests\Models\Tag::class, 5)->make());
16 | $u->data = ['json' => ['field' => random_int(0, 50)]];
17 | });
18 | }
19 | }
20 |
--------------------------------------------------------------------------------