@extends('admin.admin_dashboard') @section('admin')
{{-- --}}
@foreach ($category as $key=> $item) @endforeach
Sl Category Image Category Name Status Action
{{ $key+1 }} {{ $item->category_name }} @if($item->status == 1) Active @else Deactivated @endif Edit @if($item->status == 1) @if (Auth::user()->can('category.deactivate')) @endif @else @if (Auth::user()->can('category.activate')) @endif @endif @if (Auth::user()->can('category.delete')) Delete @endif
@endsection