@extends('layouts.app') @section('content')
@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')) @endif @if ($errors->any()) @endif
Commands Directory
@foreach ($commands as $command) @endforeach
SN Command Name Region Branch District Actions
{{ $loop->iteration }}
{{ ucwords($command->name) }} {{ ucwords($command->region->name) }} {{ ucwords($command->branch->name) }} {{ ucwords($command->district->name) }}
@endsection