@include('layouts.header')
{{-- @include('layouts.nav') --}} @include('layouts.sidebar')

Create Expense Category

@if (session('success')) @endif @if (session('delete')) @endif
{{-- Permission --}} @php $choosePermission = []; if (auth()->user()->permission) { $decodedPermissions = json_decode(auth()->user()->permission, true); if (json_last_error() === JSON_ERROR_NONE) { $choosePermission = $decodedPermissions; } } @endphp {{-- End Permission --}} @if (in_array('Expense Category Register', $choosePermission) || auth()->user()->is_admin == '1')
@endif

Expense Category Table

@foreach ($categories as $key => $cat) @endforeach
No. Category Category Description Branch Date Action
{{ $key + 1 }} {{ $cat->name }} {{ $cat->category }} @foreach ($branches as $branch) @if ($branch->id == $cat->branch) {{ $branch->name }} @endif @endforeach {{ $cat->created_at->format('d M Y') }} @if (in_array('Expense Category Edit', $choosePermission) || auth()->user()->is_admin == '1') @endif @if (in_array('Expense Category Delete', $choosePermission) || auth()->user()->is_admin == '1') @endif