@extends('layouts.app') @section('title', __('Dashboard')) @section('content')
@foreach([ ['Today Sales', $todaySales, 'fa-sack-dollar', ''], ['Received Today', $todayPaid, 'fa-coins', ''], ['Customer Due', $customerDue, 'fa-user-clock', 'text-danger'], ['Stock Value', $stockValue, 'fa-warehouse', ''], ] as [$label, $value, $icon, $class])
{{ __($label) }}
{{ number_format($value, 2) }} {{ $moneyCode }}
@endforeach
{{ __('Sales & Purchase Trend') }}
{{ __('Last 7 days') }}
{{ __('Business Health') }}
{{ __('Supplier Due') }}{{ number_format($supplierDue, 2) }} {{ $moneyCode }}
{{ __('Customers') }}{{ $customers }}
{{ __('Low Stock Items') }}{{ $lowStock->count() }}
{{ __('Open Reports') }}
{{ __('Recent Invoices') }}
{{ __('View all') }}
@forelse($recentInvoices as $invoice)@empty@endforelse
#{{ __('Customer') }}{{ __('Total') }}{{ __('Status') }}
{{ $invoice->invoice_number }}
{{ $invoice->invoice_date->format('d M') }}
{{ $invoice->customer?->name ?? $invoice->walk_in_name ?? __('Walk-in Customer') }}{{ number_format($invoice->total, 2) }} {{ $invoice->currency_code }}{{ __(ucfirst($invoice->status)) }}
{{ __('No invoices yet.') }}
{{ __('Low Stock Alert') }}
@forelse($lowStock as $product)
{{ $product->name }}{{ $product->sku }}{{ $product->stock_quantity }} {{ $product->unit }}
@empty

{{ __('Stock levels look good.') }}

@endforelse
@endsection @push('scripts')@endpush