diff --git a/Modules/Category/Resources/views/backend/categories/trash.blade.php b/Modules/Category/Resources/views/backend/categories/trash.blade.php index 43af2933..cc895031 100644 --- a/Modules/Category/Resources/views/backend/categories/trash.blade.php +++ b/Modules/Category/Resources/views/backend/categories/trash.blade.php @@ -9,88 +9,5 @@ @endsection @section('content') -
-
- - - {{ __($module_title) }} {{ __($module_action) }} - - - @lang(":module_name Management Dashboard", ['module_name'=>Str::title($module_name)]) - - - - List - - - -
-
- - - - - - - - - - - - - @foreach($$module_name as $module_name_singular) - - - - - - - - @endforeach - -
- # - - Name - - Updated At - - Created By - - Action -
- {{ $module_name_singular->id }} - - - {{ $module_name_singular->name }} - - - {{ $module_name_singular->updated_at->isoFormat('llll') }} - - {{ $module_name_singular->created_by }} - - {{__('labels.backend.restore')}} -
-
-
-
- -
+ @endsection - -@section ('after-scripts-end') - -@endsection \ No newline at end of file diff --git a/Modules/Post/Resources/views/backend/posts/create.blade.php b/Modules/Post/Resources/views/backend/posts/create.blade.php index e18f963b..2b59040b 100644 --- a/Modules/Post/Resources/views/backend/posts/create.blade.php +++ b/Modules/Post/Resources/views/backend/posts/create.blade.php @@ -1,16 +1,18 @@ @extends('backend.layouts.app') -@section('title') {{ __($module_action) }} {{ __($module_title) }} @endsection +@section('title') + {{ __($module_action) }} {{ __($module_title) }} +@endsection @section('breadcrumbs') - - - {{ __($module_title) }} - - {{ __($module_action) }} - + + + {{ __($module_title) }} + + {{ __($module_action) }} + @endsection @section('content') - -@endsection \ No newline at end of file + +@endsection diff --git a/Modules/Post/Resources/views/backend/posts/edit.blade.php b/Modules/Post/Resources/views/backend/posts/edit.blade.php index 96d75290..b384b333 100644 --- a/Modules/Post/Resources/views/backend/posts/edit.blade.php +++ b/Modules/Post/Resources/views/backend/posts/edit.blade.php @@ -1,16 +1,19 @@ @extends('backend.layouts.app') -@section('title') {{ __($module_action) }} {{ __($module_title) }} @endsection +@section('title') + {{ __($module_action) }} {{ __($module_title) }} +@endsection @section('breadcrumbs') - - - {{ __($module_title) }} - - {{ __($module_action) }} - + + + {{ __($module_title) }} + + {{ __($module_action) }} + @endsection @section('content') - -@endsection \ No newline at end of file + +@endsection diff --git a/Modules/Post/Resources/views/backend/posts/form.blade.php b/Modules/Post/Resources/views/backend/posts/form.blade.php index e9d182a5..4171ffa8 100644 --- a/Modules/Post/Resources/views/backend/posts/form.blade.php +++ b/Modules/Post/Resources/views/backend/posts/form.blade.php @@ -84,7 +84,7 @@ {!! field_required($required) !!}
{{ html()->text($field_name)->placeholder($field_placeholder)->class('form-control')->attributes(["$required", 'aria-label' => 'Image', 'aria-describedby' => 'button-image']) }} -
@@ -98,12 +98,13 @@ category())->pluck('name', 'id'):''; - $selected = (!empty($data))?optional($data->category())->pluck('id')->toArray():''; + $field_options = !empty($data) ? optional($data->category())->pluck('name', 'id') : ''; + $selected = !empty($data) ? optional($data->category())->pluck('id')->toArray() : ''; $field_placeholder = __('Select an option'); $required = 'required'; ?> - {{ html()->label($field_lable, $field_name)->class('form-label')->for($field_name) }} {!! field_required($required) !!} + {{ html()->label($field_lable, $field_name)->class('form-label')->for($field_name) }} + {!! field_required($required) !!} {{ html()->select($field_name, $field_options, $selected)->placeholder($field_placeholder)->class('form-select select2-category')->attributes(["$required"]) }} @@ -116,7 +117,8 @@ $required = 'required'; $select_options = \Modules\Post\Enums\PostType::toArray(); ?> - {{ html()->label($field_lable, $field_name)->class('form-label')->for($field_name) }} {!! field_required($required) !!} + {{ html()->label($field_lable, $field_name)->class('form-label')->for($field_name) }} + {!! field_required($required) !!} {{ html()->select($field_name, $select_options)->class('form-select')->attributes(["$required"]) }} @@ -144,14 +146,18 @@ tags)->pluck('name', 'id'):''; - $selected = (!empty($data))?optional($data->tags)->pluck('id')->toArray():''; + $field_options = !empty($data) ? optional($data->tags)->pluck('name', 'id') : ''; + $selected = !empty($data) + ? optional($data->tags) + ->pluck('id') + ->toArray() + : ''; $field_placeholder = __('Select an option'); $required = ''; ?> {{ html()->label($field_lable, $field_name)->class('form-label')->for($field_name) }} {!! field_required($required) !!} - {{ html()->multiselect( $field_name, $field_options, $selected)->class('form-control select2-tags')->attributes(["$required"]) }} + {{ html()->multiselect($field_name, $field_options, $selected)->class('form-control select2-tags')->attributes(["$required"]) }} @@ -254,8 +260,6 @@ - - @push('after-styles') @@ -323,6 +327,8 @@ $('#button-image').filemanager('image'); + +