{{ __('All Categories') }}

@section('content')
{{-- Categories Section --}}
All @foreach (range('a','z') as $char) {{ ucwords($char) }} @endforeach
    @php if(request()->char) { $categories = $categories->filter(function ($item) { return Str::startsWith($item->name, [ request()->char, ucwords(request()->char) ] ); }); } @endphp @foreach ($categories as $key => $category)
  • {{ $category->name }}
  • @endforeach
@endsection @section('js') @endsection