@extends('layouts.admin') @section('content') @if(Auth::user()->role == 'admin')
@csrf
@endif
@if(Auth::user()->role == 'admin') @endif @if($categories->count() > 0) @php $count=1; @endphp @foreach($categories as $category) @if(Auth::user()->role == 'admin') @endif @php $count++; @endphp @endforeach @endif
Sr. No NameActions
{{ $count }} {{ $category->name }}
@csrf @method('DELETE')
@endsection