@php $colspan = 12; @endphp @if (isset($isDownload) && $isDownload == true) @endif

{{ __('report.common_report') }}

{{ __('report.from') }}:  {{ isset($inputs['from_date']) ? dateFormat($inputs['from_date'], 'd-m-Y H:i') : '' }}, {{ __('report.to') }}:  {{ isset($inputs['to_date']) ? dateFormat($inputs['to_date'], 'd-m-Y H:i') : '' }}
{{ __('report.company_name') }}:  {{$companyName}}
@if($storeNameArray != "") {{ __('report.store_name') }}:  {{ $storeNameArray }} @endif
{{----}} {{----}} {{----}} {{----}} {{----}} {{----}} @if(is_object($data['sales']) && count($data['sales']) > 0) @php $totalNetto = $totalGross = 0; @endphp @foreach($data['sales'] as $salesRow) @endforeach @else @endif
--}} {{--

{{ __('report.common_report') }}

--}} {{--
--}} {{--{{ __('report.from') }}:  {{ isset($inputs['from_date']) ? dateFormat($inputs['from_date'], 'd-m-Y H:i') : '' }},--}} {{--{{ __('report.to') }}:  {{ isset($inputs['to_date']) ? dateFormat($inputs['to_date'], 'd-m-Y H:i') : '' }}--}} {{--
{{ __('report.sales') }} {{ __('report.account') }} {{ __('report.vat_code') }} {{ __('report.nett_amount') }} {{ __('report.gross_amount') }}
{{ ($salesRow->report_group_id > 0) ? zReportGroup($salesRow->report_group_id) : "-N/A-" }} {!! $salesRow->account_no !!} {!! $vatCode !!} {!! numberFormat($netto, 1, false) !!} {!! numberFormat($salesRow->total_price, 1, false) !!}
{{ __('report.total_sales') }} {!! numberFormat($totalNetto,1,false)!!} {!! numberFormat($totalGross,1,false)!!}
{{ __('common.no_record_found') }}
@if(is_object($data['vat_amount']) && count($data['vat_amount']) > 0) @php $totalNettoVAT = $totalVAT = 0; @endphp @foreach($data['vat_amount'] as $detail) @php $basicPrice = ($detail->total_price)-($detail->total_tax_amount); $totalNettoVAT += $basicPrice; $totalVAT += $detail->total_tax_amount; @endphp @endforeach @else @endif
{{ __('report.vat_amount') }} {{ __('report.basic') }} {{ __('report.vat_total') }}
{{ $detail->name }} {!! numberFormat($basicPrice, 1, false) !!} {!! numberFormat($detail->total_tax_amount, 1, false) !!}
{!! __('report.total_sales') !!} {!! numberFormat($totalNettoVAT,1,false)!!} {!! numberFormat($totalVAT,1,false)!!}
{{ __('common.no_record_found') }}
@php $totalSaleAmount = 0; $totalTips = 0; @endphp @if(is_object($data['payment_sales']) && count($data['payment_sales']) > 0) @php $totalWithTip = $totalTip = $totalWithoutTip = 0; @endphp @foreach($data['payment_sales'] as $payment) @php $totalWithTip += $payment->total_price; $totalTip += $payment->total_tip; $withoutTipTotal = ($payment->total_price) - ($payment->total_tip); $totalWithoutTip += $withoutTipTotal; @endphp @endforeach @php $totalSaleAmount = $totalWithTip; $totalTips += $totalTip; @endphp @else @endif
{{ __('report.payments') }} {{ __('report.account') }} {{ __('report.with_tip') }} {{ __('report.tips') }} {{ __('report.without_tips') }}
{{ ($payment->payment_method != "") ? paymentMethodService($payment->payment_method) : "-N/A-" }} {!! numberFormat($payment->total_price, 1, false) !!} {!! numberFormat($detail->total_tip, 1, false) !!} {!! numberFormat($withoutTipTotal, 1, false) !!}
{!! __('report.total_sales') !!} {!! numberFormat($totalWithTip,1,false)!!} {!! numberFormat($totalTip,1,false)!!} {!! numberFormat($totalWithoutTip,1,false)!!}
{{ __('common.no_record_found') }}
@if(is_object($data['vouchers']) && count($data['vouchers']) > 0) @php $discountArray = ($data['vouchers'])->toArray(); $itemDiscount = array_sum(array_column($discountArray,'item_discount')); $promoValues = array_sum(array_column($discountArray, 'promo')); $saleDiscount = array_sum(array_column($discountArray,'sale_discount')); $customerDiscount = array_sum(array_column($discountArray,'customer_discount_amount')); $totalDiscount = $itemDiscount + $promoValues + $saleDiscount + $customerDiscount; $paidDiscount = $totalSaleAmount - $totalDiscount; @endphp @else @endif
{{ __('report.vouchers') }} {{ __('report.account') }}
{{ __('report.voucher_balance')}} {!! numberFormat($totalDiscount, 1, false) !!}
{{ __('report.paid_voucher') }} {!! numberFormat($totalSaleAmount, 1, false) !!}
{{ __('report.paid_with_voucher') }} {!! numberFormat($paidDiscount, 1, false) !!}
{{ __('common.no_record_found') }}
{{ __('report.tips') }} {{ __('report.gross_amount') }}
{{ __('report.total_tips')}} {!! numberFormat($totalTips, 1, false) !!}
{{ __('report.tips_waiter') }} {{ __('report.gross_amount') }}
N/A {!! numberFormat(0, 1, false) !!}
@foreach($data['other_info'] as $other) @endforeach
{{ __('report.other_information') }}
{!! $other['title'] !!} {!! $other['amount'] !!}
@if(count($data['category_sale']) > 0) @foreach($data['category_sale'] as $category) @endforeach @else @endif
{{ __('report.category_report') }} {{ __('report.nett_amount') }} {{ __('report.gross_amount') }}
{{ $category['name'] }} {{ $category['nett_price'] }} {{ $category['total_price'] }}
{{ __('common.no_record_found') }}
@if(count($data['category_sale']) > 0) @foreach($data['category_sale'] as $category) @if(isset($data['category_item_sale'][$category['category_id']])) @foreach($data['category_item_sale'][$category['category_id']] as $item) @php $nettoPrice = $item['total_price'] - $item['total_tax']; @endphp @endforeach @else @endif @endforeach @endif
{{ $category['name'] }} {{ __('report.quantity') }} {{ __('report.nett_amount') }} {{ __('report.gross_amount') }}
{!! $item['item_name'] !!} {!! $item['total_qty'] !!} {!! numberFormat($nettoPrice,1,false) !!} {!! numberFormat($item['total_price'],1,false) !!}
{{ __('common.no_record_found') }}