@php $is_warehouse_only = current_warehouse() == current_store(); $span = 8; $spanF = 4; @endphp @if (env('ENABLE_CUSTOMER_VEHICLE')) @php $spanF++; @endphp @endif @if ($is_warehouse_only) @php $spanF++; @endphp @endif @foreach ($result['invoices'] as $key => $inv) @if (env('ENABLE_CUSTOMER_VEHICLE')) @endif @if ($is_warehouse_only) @endif @endforeach
# {{__('obs.inv_no')}} {{__('obs.ref_no')}} {{__('obs.order_no')}} {{__('obs.inv_date')}} {{__('obs.by')}} {{__('obs.customer_name')}} {{__('obs.inv_amount')}}{{ __('obs.vehicle_info') }}{{__('obs.store')}}{{__('obs.pay_status')}} {{__('obs.approval_status')}} {{__('obs.status')}} {{__('obs.action')}}
{{ ++$key }} {{ $inv->invoice_no }} {{ $inv->ref_invoice }} {{ $inv->order ? $inv->order->order_no : '' }} {{ $inv->date }} {{ $inv->createdBy->name }} {{ $inv->party ? $inv->party->name_eng : '' }} {{ number_format($inv->net_total, 2) }} {{ $inv->customerVehicle?->vehicle_number.'-'.$inv->customerVehicle?->engine_number.'-'.$inv->customerVehicle?->chassis_number }} {{ $inv->warehouse->name_eng ?? '' }} {{-- 0=unpaid, 1=partial paid, 2=paid --}} @if ($inv->pay_status == 0) {{__('obs.unpaid')}} @elseif ($inv->pay_status == 1) {{__('obs.partial_paid')}} @elseif($inv->pay_status == 2) {{__('obs.paid')}} @endif {{-- 0=stand by, 1= Panding, 2=Approve --}} {!! isset($result['approvals'][$inv->id])?$result['approvals'][$inv->id]:($inv->approve_status == 1?__('obs.approved'):'') !!} @if (isset($result['action_id'])) @endif @if ($inv->status == 1) {{__('obs.active')}} @else {{__('obs.inactive')}} @endif @php if ($inv->transaction_type == 3) { $edit_url = $inv->posting_view->edit??'sell.edit'; $print_url = $inv->posting_view->print??'sell.print'; } else { $edit_url = $inv->posting_view->edit??'sell-return.edit'; $print_url = $inv->posting_view->print??'sell-return.print'; } @endphp
@if (checkAuthPermission($edit_url)) @endif @if (checkAuthPermission($print_url)) @endif {{-- @if ($inv->sales_view == 2) @else @endif --}} @if (checkAuthPermission($print_url)) @endif @if (!empty($inv->voucher_id)) @endif @if (!empty($inv->paid_voucher_ids)) @endif
Total