@include('header')

Hi {{ Auth::user()->name ?? session('user_name') }}!

it’s good to see you again.

income statistics

Revenue Updates

Customers

{{ $customerCount }}

Invoices

{{ $invoiceCount }}

Staff

{{ $staffCount }}

Stores

{{ $storeCount }}

Invoice List

SHORT BY
@php $sno = 1; @endphp @foreach($invoices as $invoice) {{-- Name (Assuming relationship with customer or store) --}} {{-- Mobile --}} {{-- Joining / Created Date --}} {{-- Status --}} {{-- Action --}} @endforeach
ID STORE CLIENT CONTACT DATE STATUS ACTION
{{ $sno++ }} {{ $invoice->store->store ?? 'N/A' }}{{ $invoice->customer->name ?? 'N/A' }} {{ optional($invoice->customer)->mobile ?? 'N/A' }} {{ $invoice->created_at->format('d-m-Y') }} @php $total = floatval($invoice->total_amount); $paid = floatval($invoice->advance_paid); if ($paid >= $total && $total > 0) { $status = 'Paid'; $badge = 'success'; } elseif ($paid > 0 && $paid < $total) { $status='Partially Paid' ; $badge='warning' ; } else { $status='Not Paid' ; $badge='danger' ; } @endphp {{ $status }}

Statistics

Last 30 days Income
@include('footer')