@extends('layouts.admin')
@section('page_title', $isRtl ? 'القوائم' : 'Menus')
@section('content')
@php $grouped = $items->getCollection()->groupBy('location'); @endphp
@foreach($locations as $loc)
{{ str_replace('_',' ',$loc) }}
| {{ $isRtl ? 'التسمية' : 'Label' }} |
URL |
{{ $isRtl ? 'الأصل' : 'Parent' }} |
{{ $isRtl ? 'الترتيب' : 'Order' }} |
{{ $isRtl ? 'الحالة' : 'Status' }} |
|
@forelse($grouped[$loc] ?? [] as $item)
| @if($item->icon)@endif {{ $item->label }} |
{{ $item->url }} |
{{ $item->parent?->label }} |
{{ $item->order }} |
@if($item->is_active)
{{ $isRtl ? 'نشط' : 'Active' }}
@else
{{ $isRtl ? 'معطل' : 'Inactive' }}
@endif
|
|
@empty
| {{ $isRtl ? 'لا توجد عناصر' : 'No items' }} |
@endforelse
@endforeach
{{ $items->links() }}
@endsection