@livewireStyles
@if ($invoiceNo) @endif
{{--
--}}
{{-- @if ($loadingsap) @else @endif --}} {{-- @if ($syncount >= 1) @else @endif --}}
@if ($isEnableService) @endif @php $totalCash = 0; $totalTransfer = 0; $totalSubtotalQrisCash = 0; $totalSubtotalCard = 0; $totalService = 0; @endphp @foreach ($invoices as $invoice) @if ($invoice['cashback'] !== 'N') @else @endif @if ($isEnableService) @endif @if ($invoice['payment'] === 'Multi') @php $totalCash += $invoice['cash']; $totalSubtotalCard += $invoice['transfer']; @endphp @elseif ($invoice['payment'] === 'Cash') @php $totalCash += $invoice['grandtotal']; @endphp @elseif ($invoice['payment'] === 'Qris') @php $totalSubtotalCard += $invoice['grandtotal']; @endphp @elseif ($invoice['payment'] === 'Card') @php $totalSubtotalCard += $invoice['grandtotal']; @endphp @else @endif @endforeach
No. Invoice @if($sortField === 'no') @else @endif Tanggal @if($sortField === 'created_at') @else @endif Jam Kasir @if($sortField === 'users_name') @else @endif Staff @if($sortField === 'sales_name') @else @endif Jumlah @if($sortField === 'total_qty') @else @endif Sub Total @if($sortField === 'subtotal') @else @endif Diskon CashbackPersen Service Jumlah ServiceTotal Tunai Kartu Aksi
{{ \Carbon\Carbon::parse($invoice['created_at'])->format('d/m/y') }} {{ \Carbon\Carbon::parse($invoice['created_at'])->format('H:i') }} {{ $invoice['users_name'] }} {{ $invoice['sales_name'] }} {{ $invoice['total_qty'] }} Rp. {{ number_format($invoice['subtotal'] ?? 0, 0, ',', '.') }} Rp. {{ number_format($invoice['disc_total'], 0, ',', '.') }}Rp. {{ number_format($invoice['value'], 0, ',', '.') }}Rp. 0{{ number_format($invoice['service_percent'], 1) }}% @php $totalService += $invoice['service_amount'] ?? 0; @endphp Rp. {{ number_format($invoice['service_amount'] ?? 0, 0, ',', '.') }} Rp. {{ number_format($invoice['grandtotal'], 0, ',', '.') }}Rp. {{ number_format($invoice['cash'], 0, ',', '.') }} Rp. {{ number_format($invoice['transfer'], 0, ',', '.') }}Rp. {{ number_format($invoice['grandtotal'], 0, ',', '.') }} Rp. 0Rp. 0 Rp. {{ number_format($invoice['grandtotal'], 0, ',', '.') }}Rp. 0 Rp. {{ number_format($invoice['grandtotal'], 0, ',', '.') }}Rp. 0 Rp. 0
{{ $paginatedData->links() }}
@foreach ($invoices as $invoice) @endforeach
@if ($isEnableService) @endif @if ($isEnableService) @endif
Total Struk Jumlah Tunai KartuTotal ServiceSub Total Diskon Cashback Total Retur Penjualan
Total {{ count($invoices) }} {{ collect($invoices)->sum('total_qty') }} Rp. {{ number_format($totalCash, 0, ',', '.') }} Rp. {{ number_format($totalSubtotalCard, 0, ',', '.') }}Rp. {{ number_format($totalService, 0, ',', '.') }}Rp. {{ number_format(collect($invoices)->sum('subtotal'), 0, ',', '.') }} Rp. {{ number_format(collect($invoices)->sum('disc_total'), 0, ',', '.') }} Rp. {{ number_format(collect($invoices)->sum('value'), 0, ',', '.') }} Rp. {{ number_format(collect($invoices)->sum('grandtotal'), 0, ',', '.') }} Rp. {{ number_format(collect($returnsale)->sum('price'), 0, ',', '.') }}
{{-- --}}
{{-- @foreach ($invoices as $invoice) @endforeach --}} @livewireScripts @push('scripts') @endpush