@extends('dashboard.layouts.adminlayout')
@section('title', 'Dashboard')
@section('content')
@section('breadcrumb', 'Dashboard')
@php
// Define an array of standard solid color styles for the cards
$cardStyles = [
['bg_class' => 'bg-blue-500', 'icon_bg_class' => 'bg-blue-600'],
['bg_class' => 'bg-green-500', 'icon_bg_class' => 'bg-green-600'],
['bg_class' => 'bg-indigo-500', 'icon_bg_class' => 'bg-indigo-600'], // Using indigo instead of purple
['bg_class' => 'bg-red-500', 'icon_bg_class' => 'bg-red-600'],
['bg_class' => 'bg-yellow-500', 'icon_bg_class' => 'bg-yellow-600'],
];
@endphp
{{-- Data $cards comes from the controller --}}
@foreach($cards as $index => $card)
@php
// Cycle through styles if there are more cards than defined styles
$style = $cardStyles[$index % count($cardStyles)];
@endphp
{{ $card['title'] }}
{{ $card['count'] }}
@endforeach
@endsection