@extends('layouts.master') @section('content')

@php $len = 19; @endphp @if ($page->template !== \App\Enums\PageTemplateType::gallery->value || $gallery_count < $len)
@if ($page->template === \App\Enums\PageTemplateType::gallery->value) You can add upto 19 images, 4 for cover and remaining for gallery page @endif
@if ($page->template === \App\Enums\PageTemplateType::gallery->value) @endif
Save
@else
Can not add images more than {{ $len }}
@endif
@endsection @push('custom_js') @include('_helpers.row_reorder', ['url' => route('admin.pages.gallery.reorder', $page->id)]) @include('_helpers.ajax_form') @include('_helpers.yajra', [ 'url' => route('admin.pages.gallery.index', $page->id), 'columns' => $columns, ]) @include('_helpers.swal_delete') @include('_helpers.image_preview', ['name' => 'image']) @include('_helpers.status_change', ['url' => route('admin.pages.gallery.status', $page->id)]) @endpush