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

Admin Module

Categories

Manage categories records from the database.

New Category
@if (session('success'))
{{ session('success') }}
@endif @if ($errors->any())
Please check the highlighted fields and try again.
@endif
@forelse ($records as $record) @empty @endforelse
Module Name Slug Status Sort Order Actions
{{ str($record->module ?? '-')->limit(80) }} @php $valueEn = $record->name_en ?: '-'; $valueAs = $record->name_as ?: $valueEn; @endphp {{ str($valueEn)->limit(80) }} {{ str($record->slug ?? '-')->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 categories found.
{{ $records->links() }}
@endsection