{{-- Dashboard File: resources/views/livewire/dashboard.blade.php Component: app/Livewire/Dashboard.php --}}
| # | Invoice | Customer | Time | Items | Amount | Payment | Status | Action |
|---|---|---|---|---|---|---|---|---|
| {{ str_pad($loop->iteration, 2, '0', STR_PAD_LEFT) }} | {{ $sale->invoice_no }} |
@if($sale->customer)
{{ $sale->customer->name ?: '—' }}
{{ $sale->customer->mobile }}
@else
Walk-in
@endif
|
{{ $sale->created_at->format('h:i A') }} | {{ $sale->items->count() }} | ₹{{ number_format($sale->net_amount, 2) }} | @foreach($sale->payments ?? [] as $pay) {{ ucfirst($pay->payment_method) }} @endforeach | {{ ucfirst($sale->payment_status) }} | View |
|
{{ $search ? 'No results found' : 'No sales today yet' }}
|
||||||||
| # | Company | Bills | Amount |
|---|---|---|---|
| {{ str_pad($loop->iteration, 2, '0', STR_PAD_LEFT) }} | {{ $co->company_name }} | {{ $co->bill_count }} | ₹{{ number_format($co->total_amount, 2) }} |
|
No sales today
|
|||
| Product | Batch | Expiry | Qty | Days |
|---|---|---|---|---|
| {{ \Illuminate\Support\Str::limit($batch->product?->product_name ?? '—', 22) }} | {{ $batch->batch_no ?: '—' }} | {{ $batch->expiry_date->format('d M Y') }} | {{ number_format($batch->quantity, 0) }} | {{ $expired ? 'Expired' : $days.' d' }} |
|
No expiring batches
|
||||
| # | Invoice | Customer | Branch | Time | Items | Amount | Status | Action |
|---|---|---|---|---|---|---|---|---|
| {{ str_pad($loop->iteration, 2, '0', STR_PAD_LEFT) }} | {{ $sale->invoice_no }} |
@if($sale->customer)
{{ $sale->customer->name ?: '—' }}
{{ $sale->customer->mobile }}
@else
Walk-in
@endif
|
Branch {{ $sale->branch_id }} | {{ $sale->created_at->format('h:i A') }} | {{ $sale->items->count() }} | ₹{{ number_format($sale->net_amount, 2) }} | {{ ucfirst($sale->payment_status) }} | View |
|
{{ $search ? 'No results found' : 'No sales today yet' }}
|
||||||||
| Invoice | Customer | Net Amount | Status | Edited By | Edit Reason | Time |
|---|---|---|---|---|---|---|
| {{ $sale->invoice_no }} |
{{ $sale->customer?->name ?? 'Walk-in' }}
@if($sale->customer?->mobile)
{{ $sale->customer->mobile }}
@endif
|
₹{{ number_format($sale->net_amount, 0) }} | {{ ucfirst($sale->payment_status) }} | {{ $sale->updatedByUser?->name ?? '—' }} | {{ Str::limit($sale->edit_reason ?? '—', 40) }} | {{ $sale->updated_at->format('h:i A') }} |
| Employee | Bills | Amount |
|---|---|---|
|
{{ $emp->name }}
{{ ucfirst($emp->role) }}
|
{{ $emp->bill_count }} | ₹{{ number_format($emp->total_amount, 2) }} |
|
No activity today
| ||
| # | Company | Bills | Amount |
|---|---|---|---|
| {{ str_pad($loop->iteration, 2, '0', STR_PAD_LEFT) }} | {{ $co->company_name }} | {{ $co->bill_count }} | ₹{{ number_format($co->total_amount, 2) }} |
|
No sales today
| |||
| Product | Batch | Expiry | Qty | Days |
|---|---|---|---|---|
| {{ \Illuminate\Support\Str::limit($batch->product?->product_name ?? '—', 20) }} | {{ $batch->batch_no ?: '—' }} | {{ $batch->expiry_date->format('d M Y') }} | {{ number_format($batch->quantity, 0) }} | {{ $expired ? 'Expired' : $days.' d' }} |
|
No expiring batches
| ||||