@php
$col_class = 'col-xl col-lg-4 col-md-6';
@endphp
Total Commands
{{
is_object($commands) && method_exists($commands, 'total')
? $commands->total()
: (is_object($commands) && method_exists($commands, 'count')
? $commands->count()
: count($commands ?? []))
}}
Active Regions
{{
is_object($regions) && method_exists($regions, 'count')
? $regions->count()
: count($regions ?? [])
}}
Total Branches
{{
is_object($branches) && method_exists($branches, 'count')
? $branches->count()
: count($branches ?? [])
}}
Districts Covered
{{
is_object($districts) && method_exists($districts, 'count')
? $districts->count()
: count($districts ?? [])
}}
@if (session('success'))
{{ session('success') }}
@endif
@if ($errors->any())
{{ implode(', ', $errors->all()) }}
@endif
| SN |
Command Name |
Region |
Branch |
District |
Actions |
@foreach ($commands as $command)
|
{{ $loop->iteration }}
|
{{ ucwords($command->name) }}
|
{{ ucwords($command->region->name) }}
|
{{ ucwords($command->branch->name) }}
|
{{ ucwords($command->district->name) }}
|
|
@endforeach
@endsection