@extends('layouts.app')

@section('content')
<div style="background-color: #e0e0e0; width: 100%; min-height: 100vh; border-radius: 15px; padding: 1rem;">
    <div style="background-color: #000; color: #fff; padding: 0.1rem; border-radius: 0.5rem;">
        <h1 class="m-0">Dashboard</h1>
    </div>

    <div class="container mt-4">
        <div class="row">
            <!-- Saldo Masuk -->
            <div class="col-md-4">
                <div class="card border border-secondary p-3 mb-3" style="border-radius: 15px; background-color: #28a745; color: #fff;">
                    <div class="card-body">
                        <h5 class="card-title">Total Pemasukan</h5>
                        <p class="card-text">Rp {{ number_format($pemasukan, 0, ',', '.') }}</p>
                    </div>
                </div>
            </div>

            <!-- Saldo Keluar -->
            <div class="col-md-4">
                <div class="card border border-secondary p-3 mb-3" style="border-radius: 15px; background-color: #dc3545; color: #fff;">
                    <div class="card-body">
                        <h5 class="card-title">Total Pengeluaran</h5>
                        <p class="card-text">Rp {{ number_format($pengeluaran, 0, ',', '.') }}</p>
                    </div>
                </div>
            </div>

            <!-- Saldo Akhir -->
            <div class="col-md-4">
                <div class="card border border-secondary p-3 mb-3" style="border-radius: 15px; background-color: #ffc107; color: #000;">
                    <div class="card-body">
                        <h5 class="card-title">Saldo Akhir</h5>
                        <p class="card-text">Rp {{ number_format($saldo_akhir, 0, ',', '.') }}</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
