MDAs

Bulk Add MDA Add MDA
@forelse ($ministries as $ministry) @php $colors = [ ['bg' => 'bg-purple-50', 'text' => 'text-purple-600'], ['bg' => 'bg-green-50', 'text' => 'text-green-600'], ['bg' => 'bg-amber-50', 'text' => 'text-amber-600'], ['bg' => 'bg-blue-50', 'text' => 'text-blue-600'], ['bg' => 'bg-rose-50', 'text' => 'text-rose-600'], ]; $color = $colors[$ministry->id % count($colors)]; $initials = substr($ministry->name, 0, 2); $words = explode(' ', $ministry->name); if (count($words) >= 2) { $initials = strtoupper(substr($words[0], 0, 1) . substr($words[1], 0, 1)); if (strtolower($words[0]) === 'ministry' && isset($words[2])) { $initials = strtoupper(substr($words[0], 0, 1) . substr($words[2], 0, 1)); } } @endphp
{{ $initials }}

{{ $ministry->name }}

View Profile
{{ $ministry->assets_count }}
Assets
{{ $ministry->asset_requests_count }}
Requests
@empty
@endforelse
@forelse ($ministries as $ministry) @empty @endforelse
S/N MDA Name Code Type Users Requests Assets Actions
{{ $loop->iteration + ($ministries->currentPage() - 1) * $ministries->perPage() }}
{{ $ministry->name }}
{{ $ministry->code }}
{{ $ministry->type }}
{{ $ministry->users_count }}
{{ $ministry->asset_requests_count }}
{{ $ministry->assets_count }}
View Edit
@csrf @method('DELETE') Delete
{{ $ministries->links() }}