@extends('layouts.app') @section('title', 'Dasbor') @section('breadcrumb') @endsection @section('content')
{{-- Filter Pendapatan --}}
@error('filterBulan') {{ $message }} @enderror
@error('filterTahun') {{ $message }} @enderror
{{-- Statistik Pendapatan --}}
{{ format_currency($monthlyRevenue) }}
Pendapatan Bulan Ini
{{ format_currency($todayRevenue) }}
Pendapatan Hari Ini
{{ $todayCustomers }}
Pembeli Hari Ini
{{ $monthCustomers }}
Pembeli Bulan Ini
{{-- Chart --}}
Grafik Pendapatan Per Bulan
Penjualan per Kategori Produk
{{-- Produk Kadaluarsa --}}
Produk Mendekati Kadaluarsa
@forelse ($expiringBatches as $batch) @if($batch->qty >= 1) @endif @empty @endforelse
Produk Kode Batch Stok Tgl. Exp. Cabang Aksi
{{ $batch->product->product_name ?? '-' }} {{ $batch->batch_code }} {{ $batch->qty}} {{ \Carbon\Carbon::parse($batch->exp_date)->translatedFormat('d M Y') }} {{ $batch->branch->name ?? '-' }}
@csrf
Tidak ada produk yang mendekati kadaluarsa.
@endsection @section('third_party_scripts') @endsection @push('page_scripts') @endpush