Import / Export
@can('sale.create') @endcan
@can('sale.create') Input Penjualan @endcan
Tanggal Pembeli Jumlah Item Total Jual Aksi @forelse ($sales as $sale) @php($totalSell = $sale->items->sum(fn ($i) => $i->sell_price * $i->quantity)) {{ $sale->sale_date->format('d M Y') }} {{ $sale->buyer ?: '—' }} {{ $sale->items->count() }} {{ \App\Support\Money::format($totalSell) }}
@can('sale.update') @endcan @can('sale.delete') @endcan
@empty @endforelse @if ($sales->hasPages()) {{ $sales->links() }} @endif
@if ($showDelete) @endif @if ($showImport) @endif