@extends('layouts.app') @section('title', 'Sales') @section('breadcrumb') @endsection @section('content')
৳{{ number_format($totalAmount, 0) }}
Total (filtered)
৳{{ number_format($totalProfit, 0) }}
Profit (filtered)
৳{{ number_format($totalDue, 0) }}
Due (filtered)
@forelse($sales as $sale) @empty @endforelse
Invoice Customer Date Type Total Paid Due Status By Actions
{{ $sale->invoice_no }} {{ $sale->customer?->name ?? 'Walk-in' }} {{ $sale->sale_date->format('d M Y') }} {{ ucfirst($sale->sale_type) }} ৳{{ number_format($sale->total_amount, 2) }} ৳{{ number_format($sale->paid_amount, 2) }} @if($sale->due_amount > 0) ৳{{ number_format($sale->due_amount, 2) }} @else@endif @php $sc=['completed'=>'success','hold'=>'warning','returned'=>'danger','cancelled'=>'secondary','draft'=>'info']; @endphp {{ ucfirst($sale->status) }} {{ $sale->creator?->name }}
No sales found.
@if($sales->hasPages())@endif
@endsection