first upload all files

This commit is contained in:
NW
2023-06-11 13:14:03 +01:00
parent f14dbc52b5
commit c08b36d1b6
1705 changed files with 106852 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
@section('title')
@isset($subtitle)
{{ "{$subtitle} - {$title}" }}
@else
{{ $title }}
@endisset
@endsection
@section('content_header')
<h3>{{ $title }}</h3>
<ol class="breadcrumb">
<li><a href="{{ route('admin.dashboard.index') }}">{{ trans('admin::dashboard.dashboard') }}</a></li>
{{ $slot }}
</ol>
@endsection

View File

@@ -0,0 +1,67 @@
@section('content')
<div class="row">
<div class="btn-group pull-right">
@if (isset($buttons, $name))
@foreach ($buttons as $view)
<a href="{{ route("admin.{$resource}.{$view}") }}" class="btn btn-primary btn-actions btn-{{ $view }}">
{{ trans("admin::resource.{$view}", ['resource' => $name]) }}
</a>
@endforeach
@else
{{ $buttons ?? '' }}
@endif
</div>
</div>
<div class="box box-primary">
<div class="box-body index-table" id="{{ isset($resource) ? "{$resource}-table" : '' }}">
@if (isset($thead))
@include('admin::components.table')
@else
{{ $slot }}
@endif
</div>
</div>
@endsection
@isset($name)
@push('shortcuts')
@if (isset($buttons) && in_array('create', $buttons))
<dl class="dl-horizontal">
<dt><code>c</code></dt>
<dd>{{ trans('admin::resource.create', ['resource' => $name]) }}</dd>
</dl>
@endif
<dl class="dl-horizontal">
<dt><code>Del</code></dt>
<dd>{{ trans('admin::resource.delete', ['resource' => $name]) }}</dd>
</dl>
@endpush
@push('scripts')
<script>
@if (isset($buttons) && in_array('create', $buttons))
keypressAction([
{ key: 'c', route: '{{ route("admin.{$resource}.create") }}'}
]);
@endif
Mousetrap.bind('del', function () {
$('.btn-delete').trigger('click');
});
Mousetrap.bind('backspace', function () {
$('.btn-delete').trigger('click');
});
@isset($resource)
DataTable.setRoutes('#{{ $resource }}-table .table', {
index: '{{ "admin.{$resource}.index" }}',
edit: '{{ "admin.{$resource}.edit" }}',
destroy: '{{ "admin.{$resource}.destroy" }}',
});
@endisset
</script>
@endpush
@endisset