@extends('layouts.admin') @section('title', $customer->name) @section('content') @php $input = 'w-full h-11 px-3 rounded-xl border border-slate-300 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-sm outline-none focus:ring-2 ring-brand-500 focus:bg-white dark:focus:bg-slate-900'; $label = 'block text-sm font-semibold mb-2'; $badge = [ 'paid' => 'bg-emerald-500/10 text-emerald-600 dark:text-emerald-400', 'partial' => 'bg-amber-500/10 text-amber-600 dark:text-amber-400', 'due' => 'bg-red-500/10 text-red-500', ]; $methods = ['cash' => 'Cash', 'card' => 'Card', 'bank' => 'Bank Transfer']; $cards = [ ['Invoices', number_format($sales->count()), 'text-sky-500'], ['Total purchase', 'AED ' . number_format($totalBuy, 2), 'text-slate-800 dark:text-slate-100'], ['Total paid', 'AED ' . number_format($totalPaid, 2), 'text-emerald-500'], ['Total due', 'AED ' . number_format($totalDue, 2), 'text-red-500'], ]; @endphp {{-- Breadcrumb --}}
@if (session('success'))| Invoice | Date | Total | Paid | Due | Status | Action |
|---|---|---|---|---|---|---|
| {{ $s->invoice_no }} | {{ $s->date->format('d M Y') }} | {{ number_format($s->total, 2) }} | {{ number_format($s->paid_amount, 2) }} | {{ number_format($s->due_amount, 2) }} | {{ $s->payment_status }} | View |
| Ekhono kono invoice nai. | ||||||
| Date | Invoice | Method | Note | Amount |
|---|---|---|---|---|
| {{ $p->date->format('d M Y') }} | {{ $p->sale->invoice_no }} | {{ $methods[$p->method] ?? $p->method }} | {{ $p->note ?: '—' }} | +{{ number_format($p->amount, 2) }} |
| Ekhono kono due payment neya hoyni. | ||||