@extends('layouts.app') @section('title', 'Sales') @section('content')
Manage invoices and sales records
| Invoice # | Date | Customer | @if($user->isAdmin())Agent | @endifTotal | Paid | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $sale->invoice_number }} | {{ \Carbon\Carbon::parse($sale->invoice_date)->format('d M Y') }} |
{{ $sale->customer_name }}
{{ $sale->customer_phone }}
|
@if($user->isAdmin())
{{ $sale->agent_name ?? '-' }} | @endifRM {{ number_format($sale->total, 2) }} | RM {{ number_format($sale->amount_paid, 2) }} |
@if($sale->payment_status == 'paid')
Paid
@elseif($sale->payment_status == 'partial')
Partial
@elseif($sale->payment_status == 'cancelled')
Cancelled
@else
Unpaid
@endif
@if($sale->record_only)
RO
@endif
|
View Print |