{{ @$shop->nama ?? ' ' }} - Daily Sales Report
Report Printed on: {{date('l, F d, Y')}} Printed By : {{\Auth::user()->nama}} |
{{-- From Date: {{date('d/m/y', strtotime($start_date))}} To Date: {{date('d/m/y', strtotime($end_date))}} | --}}
--}} | Bill Number | Pax | Cashier POS | @php $colh = 0; $colspan_cat = 0; @endphp {{-- @foreach ($shops as $shop) @php $colspan_cat += 3; @endphp{{$shop->nama}} | @endforeach --}} @if (count($tipe_menus) > 0) @foreach ($tipe_menus as $tipe) @if ($filtered_tipe === 0) @if ($TotalTransactionTipe[$tipe->id] > 0) @php $colspan_cat += 3; @endphp{{ strlen($tipe->nama_tipe) > 5 ? removeVocalHuruf(@$tipe->nama_tipe) : @$tipe->nama_tipe}} | @endif @else @php $colspan_cat += 3; @endphp{{ strlen($tipe->nama_tipe) > 5 ? removeVocalHuruf(@$tipe->nama_tipe) : @$tipe->nama_tipe}} | @endif @endforeachCustom Menu | @endifDisc. | Services | Tax | Total | Cash | Card | Digital | Tf Room | Tf NonStay | Ledger | Change | Note | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{$jenis_tipe}} | --}} {{-- @php --}} {{-- // $col++; // @endphp --}} {{-- @endforeach --}} {{-- @endforeach --}} {{-- @endforeach --}} {{--||||||||||||||||||||||||||||||||
--}} | {{$item->order_flag}} | 1 | {{$item->user->nama}} | {{-- @php $hitung_i = 0; @endphp @foreach ($tipe_menus as $index=>$tipe) @php // Variable $total_per_tipe = 0; @endphp @foreach ($item->menu as $menu) @if ($menu->tipe_menu_id == $tipe->id) @php if ($item->complimentary_id > 0) { // sum total per tipe menu $total_per_tipe += $menu->grand_total_complimentary; }else{ // sum total per tipe menu $total_per_tipe += $menu->total_biaya; } @endphp @endif @endforeach{{ribuan($total_per_tipe)}} | @endforeach --}} @php $hitung_i = 0; @endphp {{-- @foreach ($shops as $shop) @foreach (config('custom.jenis_tipe_item') as $jenis_cindex=>$jenis_ctipe) @php // Variable $total_per_tipe = 0; $discount_per_tipe = 0; @endphp @foreach ($item->menu as $menu) @if ($menu->tipeMenu) @if ($menu->tipeMenu->type_category_id == $jenis_cindex && $menu->shop_id == $shop->id) @php if ($item->complimentary_id > 0) { // sum total per tipe menu $total_per_tipe += $menu->grand_total_complimentary; }else{ // sum total per tipe menu $total_per_tipe += $menu->total_biaya; } $discount_per_tipe += $menu->diskon @endphp @elseif($menu->tipeMenu->type_category_id == null && $menu->shop_id == $shop->id) @if ($jenis_cindex === 3 ) @php if ($item->complimentary_id > 0) { // sum total per tipe menu $total_per_tipe += $menu->grand_total_complimentary; }else{ // sum total per tipe menu $total_per_tipe += $menu->total_biaya; } $discount_per_tipe += $menu->diskon @endphp @endif @endif @endif @endforeach
{{ribuan($total_per_tipe)}} --}}
{{-- {{ $discount_per_tipe > 0 ? "(".ribuan($discount_per_tipe*-1).")" : ""}} --}} {{-- |
@php
$total_discount_bill +=($discount_per_tipe*-1);
@endphp
@endforeach
@endforeach --}}
@if (count($tipe_menus) >0)
@foreach ($tipe_menus as $tipe)
@if ($filtered_tipe === 0)
@if ($TotalTransactionTipe[$tipe->id] > 0)
{{-- @foreach (config('custom.jenis_tipe_item') as $jenis_cindex=>$jenis_ctipe) --}}
@php
// Variable
$total_per_tipe = 0;
$discount_per_tipe = 0;
@endphp
@foreach ($item->menu as $menu)
@if ($menu->tipeMenu)
@if ($menu->tipeMenu->id == $tipe->id)
@php
if ($item->complimentary_id > 0) {
// sum total per tipe menu
$total_per_tipe += $menu->grand_total_complimentary;
}else{
// sum total per tipe menu
$total_per_tipe += $menu->total_biaya;
}
$discount_per_tipe += $menu->diskon;
$total_per_tipe -= $menu->diskon;
@endphp
@elseif($menu->tipeMenu->id == null)
{{-- @if ($jenis_cindex === 3 ) --}}
@php
if ($item->complimentary_id > 0) {
// sum total per tipe menu
$total_per_tipe += $menu->grand_total_complimentary;
}else{
// sum total per tipe menu
$total_per_tipe += $menu->total_biaya;
}
$discount_per_tipe += $menu->diskon;
$total_per_tipe -= $menu->diskon;
@endphp
{{-- @endif --}}
@endif
@endif
@endforeach
{{-- {{ribuan($total_per_tipe)}} --}}
{{ribuanWithComma($total_per_tipe)}}
@if($discount_per_tipe > 0) Disc. {{ribuanWithComma($discount_per_tipe)}} @endif |
@php
$total_discount_bill +=($discount_per_tipe*-1);
@endphp
{{-- @endforeach --}}
@endif
@else
{{-- @foreach (config('custom.jenis_tipe_item') as $jenis_cindex=>$jenis_ctipe) --}}
@php
// Variable
$total_per_tipe = 0;
$discount_per_tipe = 0;
@endphp
@foreach ($item->menu as $menu)
@if ($menu->tipeMenu)
@if ($menu->tipeMenu->id == $tipe->id)
@php
if ($item->complimentary_id > 0) {
// sum total per tipe menu
$total_per_tipe += $menu->grand_total_complimentary;
}else{
// sum total per tipe menu
$total_per_tipe += $menu->total_biaya;
}
$discount_per_tipe += $menu->diskon;
$total_per_tipe -= $menu->diskon;
@endphp
@elseif($menu->tipeMenu->id == null)
{{-- @if ($jenis_cindex === 3 ) --}}
@php
if ($item->complimentary_id > 0) {
// sum total per tipe menu
$total_per_tipe += $menu->grand_total_complimentary;
}else{
// sum total per tipe menu
$total_per_tipe += $menu->total_biaya;
}
$discount_per_tipe += $menu->diskon;
$total_per_tipe -= $menu->diskon;
@endphp
{{-- @endif --}}
@endif
@endif
@endforeach
{{-- {{ribuan($total_per_tipe)}} --}}
{{ribuanWithComma($total_per_tipe)}}
@if($discount_per_tipe > 0) Disc. {{ribuanWithComma($discount_per_tipe)}} @endif |
@php
$total_discount_bill +=($discount_per_tipe*-1);
@endphp
{{-- @endforeach --}}
@endif
@endforeach
@endif
@php //custom_menu $diskon_cm = 0; $total_custom_menu = 0; foreach ($item->menu as $menu) { if ($menu->keterangan_custom) { $nominal_custom_menu += $menu->total_biaya - $menu->diskon; // $total_custom_menu += $menu->total_biaya; } $diskon_cm += $menu->diskon; } @endphp {{-- {{ribuan($nominal_custom_menu)}} --}} {{ribuanWithComma($nominal_custom_menu)}} | @php $total_tipe_gross[''] += $nominal_custom_menu ?? 0; $total_tipe_nett[''] += $nominal_custom_menu ?? 0; $total_discount_bill += $diskon_cm; @endphp@php $Total_Disc_G += $total_discount_bill; $Total_Disc_N += $total_discount_bill; @endphp {{-- {{ribuan($total_discount_bill)}} --}} {{ribuanWithComma($total_discount_bill)}} | {{-- {{ribuan($item->services_charge)}} --}} {{ribuanWithComma($item->services_charge)}} | {{-- {{ribuan($item->ppn_charge)}} --}} {{ribuanWithComma($item->ppn_charge)}} | {{--{{$item->complimentary_id > 0 ? ribuan($grand_total_complimentary) : ribuan($item->grand_total_pos)}} | --}}{{$item->complimentary_id > 0 ? ribuanWithComma($grand_total_complimentary) : ribuanWithComma($item->grand_total_pos)}} | @foreach ($item->pembayaranpos as $urutan=>$bayar) @php // Ambil dan Sum pembayaranpos ^_^ if ($bayar->jenis_pembayaran_id == 1) { $nominal_cash += $bayar->nominal; }elseif ($bayar->jenis_pembayaran_id == 2) { $nominal_card += $bayar->nominal; }elseif ($bayar->jenis_pembayaran_id == 4) { $nominal_digital += $bayar->nominal; }elseif ($bayar->jenis_pembayaran_id == 7) { $nominal_kamar += $bayar->nominal; }elseif ($bayar->jenis_pembayaran_id == 6) { $nominal_nonstay += $bayar->nominal; } @endphp @endforeach{{-- {{ribuan($nominal_cash)}} --}} {{ribuanWithComma($nominal_cash)}} | {{-- {{ribuan($nominal_card)}} --}} {{ribuanWithComma($nominal_card)}} | {{-- {{ribuan($nominal_digital)}} --}} {{ribuanWithComma($nominal_digital)}} | {{-- {{ribuan($nominal_kamar)}} --}} {{ribuanWithComma($nominal_kamar)}} | {{-- {{ribuan($nominal_nonstay)}} --}} {{ribuanWithComma($nominal_nonstay)}} | {{-- {{ribuan($nominal_ledger)}} --}} {{ribuanWithComma($nominal_ledger)}} | {{($nominal_cash - $item->grand_total_pos) > 0 ? ribuanWithComma($nominal_cash - $item->grand_total_pos) : 0}} | {{$item->complimentary_id ? 'C' : ''}} | @php // sum total $total_cash += $nominal_cash; $total_card += $nominal_card; $total_digital += $nominal_digital; $total_transfer_kamar += $nominal_kamar; $total_nonstay += $nominal_nonstay; $total_ledger += $nominal_ledger; $total_change += ($nominal_cash - $item->grand_total_pos) > 0 ? ($nominal_cash - $item->grand_total_pos) : 0; // sum ppn and tax $total_services += $item->services_charge; $total_tax += $item->ppn_charge; @endphp|||||||||||
--}} | {{-- @foreach ($tipe_menus as $tipe) | @endforeach --}} {{-- @foreach ($shops as $shop) @foreach (config('custom.jenis_tipe_item') as $cjenis_tipe_item_idx => $cjenis_tipe_item) | @endforeach @endforeach --}} @if (count($tipe_menus) > 0) @foreach ($tipe_menus as $tipe) @if ($filtered_tipe === 0) @if ($TotalTransactionTipe[$tipe->id] > 0) | @endif @else | @endif @endforeach @endif | |||||||||||||||||||||||||||
Discount | @foreach ($shops as $shop) @foreach (config('custom.jenis_tipe_item') as $fg_tipe_item_idx => $fg_tipe_item) | {{ribuan( $disc_per_tipe[$shop->id][$fg_tipe_item_idx] )}} | @endforeach @endforeach||||||||||||||||||||||||||||||
--}} | G - Total | {{count($transactions)}} | {{-- @foreach ($tipe_menus as $tipe) | {{ribuan( $total_tipe_gross[$tipe->id] )}} | @endforeach --}} {{-- @foreach ($shops as $shop) @foreach (config('custom.jenis_tipe_item') as $fg_tipe_item_idx => $fg_tipe_item){{ribuan( $total_tipe_gross[$shop->id][$fg_tipe_item_idx] )}} | @endforeach @endforeach --}} @if (count($tipe_menus) > 0) @foreach ($tipe_menus as $tipe) @if ($filtered_tipe === 0) @if ($TotalTransactionTipe[$tipe->id] > 0 && $filtered_tipe === 0) {{--{{ribuan($total_tipe_gross[$tipe->id])}} | --}}{{ribuanWithComma($total_tipe_gross[$tipe->id])}} | @endif @else {{--{{ribuan($total_tipe_gross[$tipe->id])}} | --}}{{ribuanWithComma($total_tipe_gross[$tipe->id])}} | @endif @endforeach{{ribuanWithComma($total_tipe_gross[''])}} | @endif {{--{{ribuan($Total_Disc_G)}} | {{ribuan($total_services)}} | {{ribuan($total_tax)}} | --}}{{ribuanWithComma($Total_Disc_G)}} | {{ribuanWithComma($total_services)}} | {{ribuanWithComma($total_tax)}} | {{--{{ribuan($total_gross)}} | {{ribuan($total_cash)}} | {{ribuan($total_card)}} | {{ribuan($total_digital)}} | {{ribuan($total_transfer_kamar)}} | {{ribuan($total_nonstay)}} | {{ribuan($total_ledger)}} | --}}{{ribuanWithComma($total_gross)}} | {{ribuanWithComma($total_cash)}} | {{ribuanWithComma($total_card)}} | {{ribuanWithComma($total_digital)}} | {{ribuanWithComma($total_transfer_kamar)}} | {{ribuanWithComma($total_nonstay)}} | {{ribuanWithComma($total_ledger)}} | {{ribuanWithComma($total_change)}} | |
--}} | R - Total | @php $countMinusCompliment = count($transactions) - $count_compliment; @endphp {{$countMinusCompliment}} | {{-- @foreach ($tipe_menus as $tipe) | {{ribuan( $total_tipe_nett[$tipe->id] )}} | @endforeach --}} {{-- @foreach ($shops as $shop) @foreach (config('custom.jenis_tipe_item') as $fn_tipe_item_idx => $fn_tipe_item){{ribuan( $total_tipe_nett[$shop->id][$fn_tipe_item_idx] )}} | @endforeach @endforeach --}} @if (count($tipe_menus) > 0) @foreach ($tipe_menus as $tipe) @if ($filtered_tipe === 0) @if ($TotalTransactionTipe[$tipe->id] > 0 && $filtered_tipe === 0) {{--{{ribuan($total_tipe_nett[$tipe->id])}} | --}}{{ribuanWithComma($total_tipe_nett[$tipe->id])}} | @endif @else {{--{{ribuan($total_tipe_nett[$tipe->id])}} | --}}{{ribuanWithComma($total_tipe_nett[$tipe->id])}} | @endif @endforeach{{ribuanWithComma($total_tipe_nett[''])}} | @endif {{--{{ribuan($Total_Disc_N)}} | {{ribuan($total_services)}} | {{ribuan($total_tax)}} | --}}{{ribuanWithComma($Total_Disc_N)}} | {{ribuanWithComma($total_services)}} | {{ribuanWithComma($total_tax)}} | {{--{{ribuan($total_nett)}} | {{ribuan($total_cash)}} | {{ribuan($total_card)}} | {{ribuan($total_digital)}} | {{ribuan($total_transfer_kamar)}} | {{ribuan($total_nonstay)}} | {{ribuan($total_ledger)}} | --}}{{ribuanWithComma($total_nett)}} | {{ribuanWithComma($total_cash)}} | {{ribuanWithComma($total_card)}} | {{ribuanWithComma($total_digital)}} | {{ribuanWithComma($total_transfer_kamar)}} | {{ribuanWithComma($total_nonstay)}} | {{ribuanWithComma($total_ledger)}} | {{ribuanWithComma($total_change)}} | |
No Data |
||||||||||||||||||||||||||||||||
No Transactions Today. |
Description | Amount | |
---|---|---|
Cash | {{--{{ribuan($total_cash)}} | --}}{{ribuanWithComma($total_cash)}} |
Card | {{--{{ribuan($total_card)}} | --}}{{ribuanWithComma($total_card)}} |
Digital | {{--{{ribuan($total_digital)}} | --}}{{ribuanWithComma($total_digital)}} |
Transfer Kamar | {{--{{ribuan($total_transfer_kamar)}} | --}}{{ribuanWithComma($total_transfer_kamar)}} |
Transfer Nonstay | {{--{{ribuan($total_nonstay)}} | --}}{{ribuanWithComma($total_nonstay)}} |
Ledger | {{--{{ribuan($total_ledger)}} | --}}{{ribuanWithComma($total_ledger)}} |
Compliment | {{--{{ribuan($total_compliment)}} | --}}{{ribuanWithComma($total_compliment)}} |
Total | {{--{{ribuan($Total)}} | --}}{{ribuanWithComma($Total)}} |