@extends('layouts.app')
@section('title', 'Dashboard')
@section('content')
    <!-- Start Main Content -->
    <h4>Dashboard</h4>
    <div class="row">
        @foreach ($cards as $category => $periods)
            <div class="col-4">
                <div class="card p-3">
                    <h5>{{ ucfirst($category) }}</h5>
                    @foreach ($periods as $period => $value)
                        <div class="ml-auto">
                            <h5>{{ $period }}: <span class="text-success"> {{ $value }}</span></h5>
                        </div>
                    @endforeach
                </div>
            </div>
        @endforeach
    </div>
@endsection
