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

Admin Module

Gallery Albums

Manage gallery albums records from the database.

@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
Please check the highlighted fields and try again.
@endif
@forelse ($records as $record) @empty @endforelse
Title Status Sort Order Actions
@php $valueEn = $record->title_en ?: '-'; $valueAs = $record->title_as ?: $valueEn; @endphp {{ str($valueEn)->limit(80) }} @php $statusEn = str($record->status ?? '-')->replace('_', ' ')->title()->toString(); $statusAs = $selectOptionLabelsAs[$record->status ?? ''] ?? $statusEn; @endphp {{ $statusEn }} {{ str($record->sort_order ?? '-')->limit(80) }}
@csrf @method('DELETE')
No gallery albums found.
{{ $records->links() }}
@include('admin.gallery-albums.create-edit', ['record' => null, 'modalId' => 'createRecordModal', 'action' => route('admin.gallery-albums.store'), 'method' => 'POST']) @foreach ($records as $record) @include('admin.gallery-albums.create-edit', ['record' => $record, 'modalId' => 'editRecordModal'.$record->id, 'action' => route('admin.gallery-albums.update', $record->id), 'method' => 'PUT']) @endforeach @endsection