@extends('layouts.app') @section('title', 'Dashboard') @section('actions') + Invoice Baru @endsection @section('content')
@php $cards = [ ['label' => 'Total Invoice', 'value' => number_format($totalInvoice, 0, ',', '.'), 'color' => 'blue'], ['label' => 'Invoice Hari Ini', 'value' => number_format($invoiceHariIni, 0, ',', '.'), 'color' => 'indigo'], ['label' => 'Total Nilai', 'value' => 'Rp ' . number_format($totalNilai, 0, ',', '.'), 'color' => 'emerald'], ['label' => 'Total Dibayar', 'value' => 'Rp ' . number_format($totalDibayar, 0, ',', '.'), 'color' => 'green'], ['label' => 'Total Piutang', 'value' => 'Rp ' . number_format($totalPiutang, 0, ',', '.'), 'color' => 'red'], ['label' => 'Total DP', 'value' => 'Rp ' . number_format($totalDP, 0, ',', '.'), 'color' => 'yellow'], ['label' => 'Belum Lunas', 'value' => number_format($belumLunas, 0, ',', '.'), 'color' => 'orange'], ]; $colorMap = [ 'blue' => 'from-blue-500 to-blue-600', 'indigo' => 'from-indigo-500 to-indigo-600', 'emerald' => 'from-emerald-500 to-emerald-600', 'green' => 'from-green-500 to-green-600', 'red' => 'from-red-500 to-red-600', 'yellow' => 'from-yellow-500 to-yellow-600', 'orange' => 'from-orange-500 to-orange-600', ]; @endphp @foreach($cards as $c)
{{ $c['label'] }}
{{ $c['value'] }}
@endforeach
{{-- Chart --}}

Tren Nilai Invoice (6 Bulan)

{{-- Recent --}}

Invoice Terbaru

Lihat semua →
@endsection @push('scripts') @endpush