@php $company = App\Models\Company::where('group_id',auth()->user()->id_group)->first(); @endphp

RINCIAN TRANSAKSI
PENGGUNAAN WIFI {{$company->nickname}}

{{ date('d/m/Y H:i:s') }}


{{-- --}} @foreach ($invoice as $item) @php function tgl_indo($tanggal) { $bulan = [ 1 => 'Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember', ]; $pecahkan = explode('-', $tanggal); return $bulan[(int) $pecahkan[1]] . ' ' . $pecahkan[0]; } $getitem = explode('|', $item->item); $paket = $getitem[1]; $amount_ppn = ($item->price * $item->ppn) / 100; $amount_discount = ($item->price * $item->discount) / 100; $amount_total = $item->price + $amount_ppn - $amount_discount; $getperiod = date('Y-m-d', strtotime($item->period)); $period = tgl_indo($getperiod); @endphp
{{-- --}} @if ($item->ppn === null) @else @endif @if ($item->discount === null) @else @endif @if ($item->status === 0) @else @endif

@endforeach
ID Member : {{ $item->member->id_member }}
Nama : {{ $item->member->full_name }}
Tipe : {{ $item->payment_type }}
Tgl Invoice : {{ date('d/m/Y', strtotime($item->invoice_date)) }}
Invoice : {{ $item->no_invoice }}
Periode : {{ $period }}
Internet : {{ $paket }}
Nominal : {{ number_format($item->price, 0, '.', '.') }}
PPN: -: {{ number_format($amount_ppn, 0, '.', '.') }}
Discount: -: {{ number_format($amount_discount, 0, '.', '.') }}
Total : {{ number_format($amount_total, 0, '.', '.') }}
Jatuh Tempo : {{ date('d/m/Y', strtotime($item->due_date)) }}
Status: UNPAID: LUNAS
Kasir : {{auth()->user()->name}}


Terima kasih