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,18 @@
@extends('admin::layout')
@component('admin::components.page.header')
@slot('title', trans('admin::resource.create', ['resource' => trans('page::pages.page')]))
<li><a href="{{ route('admin.pages.index') }}">{{ trans('page::pages.pages') }}</a></li>
<li class="active">{{ trans('admin::resource.create', ['resource' => trans('page::pages.page')]) }}</li>
@endcomponent
@section('content')
<form method="POST" action="{{ route('admin.pages.store') }}" class="form-horizontal" id="page-create-form" novalidate>
{{ csrf_field() }}
{!! $tabs->render(compact('page')) !!}
</form>
@endsection
@include('page::admin.pages.partials.shortcuts')

View File

@@ -0,0 +1,20 @@
@extends('admin::layout')
@component('admin::components.page.header')
@slot('title', trans('admin::resource.edit', ['resource' => trans('page::pages.page')]))
@slot('subtitle', $page->title)
<li><a href="{{ route('admin.pages.index') }}">{{ trans('page::pages.pages') }}</a></li>
<li class="active">{{ trans('admin::resource.edit', ['resource' => trans('page::pages.page')]) }}</li>
@endcomponent
@section('content')
<form method="POST" action="{{ route('admin.pages.update', $page) }}" class="form-horizontal" id="page-edit-form" novalidate>
{{ csrf_field() }}
{{ method_field('put') }}
{!! $tabs->render(compact('page')) !!}
</form>
@endsection
@include('page::admin.pages.partials.shortcuts')

View File

@@ -0,0 +1,38 @@
@extends('admin::layout')
@component('admin::components.page.header')
@slot('title', trans('page::pages.pages'))
<li class="active">{{ trans('page::pages.pages') }}</li>
@endcomponent
@component('admin::components.page.index_table')
@slot('resource', 'pages')
@slot('buttons', ['create'])
@slot('name', trans('page::pages.page'))
@slot('thead')
<tr>
@include('admin::partials.table.select_all')
<th>{{ trans('admin::admin.table.id') }}</th>
<th>{{ trans('page::pages.table.name') }}</th>
<th>{{ trans('admin::admin.table.status') }}</th>
<th data-sort>{{ trans('admin::admin.table.created') }}</th>
</tr>
@endslot
@endcomponent
@push('scripts')
<script>
new DataTable('#pages-table .table', {
columns: [
{ data: 'checkbox', orderable: false, searchable: false, width: '3%' },
{ data: 'id', width: '5%' },
{ data: 'name', name: 'translations.name', orderable: false, defaultContent: '' },
{ data: 'status', name: 'is_active', searchable: false },
{ data: 'created', name: 'created_at' },
],
});
</script>
@endpush

View File

@@ -0,0 +1,14 @@
@push('shortcuts')
<dl class="dl-horizontal">
<dt><code>b</code></dt>
<dd>{{ trans('admin::admin.shortcuts.back_to_index', ['name' => trans('page::pages.page')]) }}</dd>
</dl>
@endpush
@push('scripts')
<script>
keypressAction([
{ key: 'b', route: "{{ route('admin.pages.index') }}" },
]);
</script>
@endpush

View File

@@ -0,0 +1,8 @@
{{ Form::text('name', trans('page::attributes.name'), $errors, $page, ['labelCol' => 2, 'required' => true]) }}
{{ Form::wysiwyg('body', trans('page::attributes.body'), $errors, $page, ['labelCol' => 2, 'required' => true]) }}
<div class="row">
<div class="col-md-8">
{{ Form::checkbox('is_active', trans('page::attributes.is_active'), trans('page::pages.form.enable_the_page'), $errors, $page) }}
</div>
</div>

View File

@@ -0,0 +1,5 @@
<div class="row">
<div class="col-md-8">
@include('meta::admin.meta_fields', ['entity' => $page])
</div>
</div>