@extends('layouts.admin.app') @section('content')

{{ __('Dashboard') }}

{{ __('Overview of your mandi business') }}

{{ __('Customers') }}

{{ number_format($customerCount) }}

{{ __('Total registered') }}

{{ __('Suppliers') }}

{{ number_format($supplierCount) }}

{{ __('Total registered') }}

{{ __('Products') }}

{{ number_format($productCount) }}

{{ __('In inventory') }}

{{ __('Today Sales') }}

Rs. {{ number_format($todaySales, 0) }}

{{ __('Invoices today') }}

{{ __('Today Purchases') }}

Rs. {{ number_format($todayPurchases, 0) }}

{{ __('Purchases today') }}

{{ __('Month Profit') }}

Rs. {{ number_format($monthProfit, 0) }}

{{ $periodLabel }}

{{ __('Cash & Bank') }}

Rs. {{ number_format($cashAndBank, 0) }}

{{ __('Account balances') }}

{{ __('Stock Value') }}

Rs. {{ number_format($stockValue, 0) }}

{{ __('At purchase rate') }}

{{-- Chart + finance summary --}}

{{ __('Monthly Sales') }}

{{ __('Last 6 months from invoices') }}

@foreach ($monthlySales as $month)
{{ $month['label'] }}
@endforeach
{{ __('Sales amount') }}
{{-- Finance summary --}}

{{ __('Finance Summary') }}

{{ $periodLabel }}

  • {{ __('Net Sales (This Month)') }}
    Rs. {{ number_format($monthNetSales, 2) }}
  • {{ __('Estimated Profit') }}
    Rs. {{ number_format($monthProfit, 2) }}
  • {{ __('Customer Receivable') }}
    Rs. {{ number_format($customerReceivable, 2) }}
  • {{ __('Supplier Payable') }}
    Rs. {{ number_format($supplierPayable, 2) }}
{{ __('View full report') }}
{{-- Recent sales --}}

{{ __('Recent Sales') }}

{{ __('Latest invoices') }}

@if ($recentInvoices->isEmpty())

{{ __('No sales yet.') }}

@else
    @foreach ($recentInvoices as $invoice)
  • {{ $invoice->customer->name ?? __('Walk-in Customer') }} {{ $invoice->invoice_date?->format('d M Y') ?? $invoice->created_at?->format('d M Y') }}
    Rs. {{ number_format((float) $invoice->total, 2) }}
  • @endforeach
@endif {{ __('Sale List') }}
{{-- Recent purchases --}}

{{ __('Recent Purchases') }}

{{ __('Latest purchase bills') }}

@if ($recentPurchases->isEmpty())

{{ __('No purchases yet.') }}

@else
    @foreach ($recentPurchases as $purchase)
  • {{ $purchase->supplier->name ?? '-' }} {{ $purchase->purchase_date }}
    Rs. {{ number_format((float) $purchase->grand_total, 2) }}
  • @endforeach
@endif {{ __('Purchases') }}
{{-- --}} @endsection