{{--

Palm Lagoon TRANS STUDIO BALI

--}}

{{ $warehouse->name }}
Telp: {{ $warehouse->phone }}

{{--

Invoice: 123123

--}} {{--

123

--}}
@php $cashierName = $invoice->users_name; $atPosition = strpos($cashierName, '@'); if ($atPosition !== false) { $cashierName = substr($cashierName, 0, $atPosition); } @endphp
Cashier : {{ $cashierName }}
Bill No : {{ $invoice->no }}
Date    : {{ \Carbon\Carbon::parse($invoice->created_at)->format('d/m/Y H:i:s') }}
@foreach ($detail as $dt) @endforeach
Item Qty Price
{{ $dt->name }} @if ($dt->unit == 0) {{ intval($dt->qty) }} pcs @else {{ intval($dt->qty_unit) }} {{ $dt->unit_name }} @endif @if ($dt->unit == 0) {{ number_format($dt->nprice, 0, ',', '.') }} @if ($dt->price != $dt->nprice)
({{ number_format($dt->nprice - $dt->price, 0, ',', '.') }}) @endif @else {{ number_format($dt->pricesell, 0, ',', '.') }} @endif
@if ($invoice->payment == 'Multi' || $invoice->payment == 'Card') @php $note = json_decode($invoice->note, true); @endphp
Card Number : {{ $note['nomor_kartu'] }}
Name        : {{ $note['nama_pemegang_kartu'] }}
@endif
Sub Total  :
{{ number_format($invoice->subtotal, 0, ',', '.') }}
Discount   :
{{ number_format($invoice->disc_total, 0, ',', '.') }}
GrandTotal :
{{ number_format($invoice->must_paid, 0, ',', '.') }}
@if ($invoice->payment == 'Multi' || $invoice->payment == 'Card')
Card       :
{{ number_format($note['transfer'], 0, ',', '.') }}
Cash       :
{{ number_format($note['cash'] ?? 0, 0, ',', '.') }}
@else
Card       :
0
Cash       :
{{ number_format($invoice->paid, 0, ',', '.') }}
@endif
Change     :
{{ number_format($invoice->change, 0, ',', '.') }}

Handled By : {{ $invoice->sales_name }}

{!! $footer !!}



( _ _ _ _ _ _ _ _ _ _ _ )