@extends('layouts.app') @section('title', __('lang_v1.z_report')) @section('content')

{{ __('lang_v1.z_report')}}

@component('components.filters', ['title' => __('report.filters')]) {!! Form::open(['url' => action([\App\Http\Controllers\ReportController::class, 'zReport']), 'method' => 'get' ]) !!}
{!! Form::label('location_id', __('purchase.business_location') . ':') !!} {!! Form::select('location_id', $business_locations, $location_id ? $location_id : null, ['class' => 'form-control select2', 'style' => 'width:100%']); !!}
{{-- --}}
{!! Form::label('date_range', __('report.date_range') . ':') !!} {!! Form::text('date_range', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'id' => 'date_range', 'readonly']); !!}

{!! Form::label('date_range', __('report.date_range') . ':') !!} @if (!empty($start_date)) {{ $start_date }} @endif to @if (!empty($end_date)) {{ $end_date }} @endif
{!! Form::close() !!} @endcomponent
@component('components.widget', ['class' => 'box-primary', 'button'=> 'Print', 'title' => __('report.sales_and_taxes_summary')])
@lang( 'report.title' ) @lang( 'report.amount' )
Total Itme Sale Without Tax {{$sell_details['total_sell_exc_tax']}}
Total Sale Due {{$sell_details['invoice_due']}}
Delivary Charge (+) {{$sell_details['total_shipping_charges']}}
@endcomponent
@component('components.widget', ['class' => 'box-primary', 'title' => __('report.payment_method_wise_breakdown')]) @if ($payment_method_wise['cash_payment']>0) @endif @if ($payment_method_wise['cheque_payment']>0) @endif @if ($payment_method_wise['card_payment']>0) @endif @if ($payment_method_wise['bank_transfer_payment']>0) @endif @if ($payment_method_wise['advance_payment']>0) @endif @if ($payment_method_wise['custom_pay_1']>0) @endif @if ($payment_method_wise['custom_pay_2']>0) @endif @if ($payment_method_wise['custom_pay_3']>0) @endif @if ($payment_method_wise['custom_pay_4']>0) @endif @if ($payment_method_wise['custom_pay_5']>0) @endif @if ($payment_method_wise['custom_pay_6']>0) @endif @if ($payment_method_wise['custom_pay_7']>0) @endif @if ($payment_method_wise['other_payment']>0) @endif
@lang( 'report.title' ) @lang( 'report.amount' )
Total Cash Payment {{$payment_method_wise['cash_payment']}}
Total cheque Payment {{$payment_method_wise['cheque_payment']}}
Total card Payment {{$payment_method_wise['card_payment']}}
Total bank transfer Payment {{$payment_method_wise['bank_transfer_payment']}}
Total advance Payment {{$payment_method_wise['advance_payment']}}
Total custom pay 1 {{$payment_method_wise['custom_pay_1']}}
Total custom pay 2 {{$payment_method_wise['custom_pay_2']}}
Total custom pay 3 {{$payment_method_wise['custom_pay_3']}}
Total custom pay 4 {{$payment_method_wise['custom_pay_4']}}
Total custom pay 5 {{$payment_method_wise['custom_pay_5']}}
Total custom pay 6 {{$payment_method_wise['custom_pay_6']}}
Total custom pay 7 {{$payment_method_wise['custom_pay_7']}}
Total other Payment {{$payment_method_wise['other_payment']}}
@endcomponent
@component('components.widget', ['class' => 'box-primary', 'title' => __('report.item_wise_sales')])
@lang('sale.product') @lang('sale.qty') @lang('sale.total')
@endcomponent
@component('components.widget', ['class' => 'box-primary','title' => __('report.purchase_paid_amount')])
{{-- --}}
  @lang('purchase.ref_no') @lang('lang_v1.paid_on') @lang('sale.amount') @lang('purchase.supplier') @lang('lang_v1.payment_method') @lang('lang_v1.purchase')@lang('messages.action')
@endcomponent
@component('components.widget', ['class' => 'box-primary']) @php $total_expense = 0; @endphp @foreach($expenses as $expense) @php $total_expense += $expense['total_expense']; @endphp @endforeach
@lang( 'expense.expense_categories' ) @lang( 'report.total_expense' )
{{$expense['category'] ?? __('report.others')}} {{$expense['total_expense']}}
@lang('sale.total') {{$total_expense}}
@endcomponent
{{--
--}}
{{-- --}}
@endsection @section('javascript') @endsection