@extends('layouts.app') @section('title', __('lang_v1.all_sales')) @section('content') @php $colspan = 15; $enabled_modules = (array) (!empty(session('business.enabled_modules')) ? session('business.enabled_modules') : []); $user_company_info = session()->get('business.shipping_company_info'); @endphp

@lang('sale.sells')

@if (!empty($video) && auth()->user()->can('edu_videos.view')) @include('video.video_button', ['fileName' => $video ]) @endif
@component('components.filters', ['title' => __('report.filters')]) @include('sell.partials.sell_list_filters') @if ($payment_types ?? null)
{!! Form::label('payment_method', __('lang_v1.payment_method') . ':') !!} {!! Form::select('payment_method', $payment_types, null, [ 'class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all'), ]) !!}
@endif @if ($drivers ?? null && in_array('drivers', $enabled_modules))
{!! Form::label('driver_id', __('lang_v1.drivers') . ':') !!} {!! Form::select('driver_id', $drivers, null, [ 'class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all'), ]) !!}
@endif @if (!empty($sources))
{!! Form::label('sell_list_filter_source', __('lang_v1.sources') . ':') !!} {!! Form::select('sell_list_filter_source', $sources, null, [ 'class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all'), ]) !!}
@endif @endcomponent @can('direct_sell.access')
@endcan @component('components.widget', ['class' => 'box-primary', 'title' => __('lang_v1.all_sales')]) @can('direct_sell.access') @slot('tool') @endslot @endcan @if (auth()->user()->can('direct_sell.view') || auth()->user()->can('view_own_sell_only') || auth()->user()->can('view_commission_agent_sell')) @php $custom_labels = json_decode(session('business.custom_labels'), true); @endphp @if (request()->session()->get('business.district') == '1') @endif @if (in_array('drivers', $enabled_modules)) @endif @if (in_array('drivers', $enabled_modules)) @endif @if (request()->session()->get('business.district') == '1') @endif @if (in_array('drivers', $enabled_modules)) @endif @if (in_array('drivers', $enabled_modules)) @endif
@lang('messages.action') @lang('messages.date') @lang('sale.invoice_no') @lang('sale.customer_name') @lang('lang_v1.contact_no')@lang('lang_v1.district_name') @lang('lang_v1.district_code')@lang('sale.location') @lang('sale.payment_status') @lang('lang_v1.payment_method') @lang('sale.total_amount') @lang('sale.total_paid') @lang('lang_v1.sell_due') @lang('lang_v1.sell_return_due') @lang('lang_v1.shipping_status') @lang('lang_v1.shipping_company') @lang('lang_v1.region_name') @lang('business.city') @lang('lang_v1.shipping_company_order_status') @lang('lang_v1.total_items') @lang('lang_v1.types_of_service') {{ $custom_labels['types_of_service']['custom_field_1'] ?? __('lang_v1.service_custom_field_1') }} {{ $custom_labels['sell']['custom_field_1'] ?? '' }} {{ $custom_labels['sell']['custom_field_2'] ?? '' }} {{ $custom_labels['sell']['custom_field_3'] ?? '' }} {{ $custom_labels['sell']['custom_field_4'] ?? '' }} @lang('lang_v1.added_by')@lang('cashvan::cashvan.driver')@lang('lang_v1.assigned_at')@lang('sale.sell_note') @lang('sale.staff_note') @lang('sale.shipping_details') @lang('restaurant.table') @lang('restaurant.service_staff')
@if (in_array('drivers', $enabled_modules)) @can('sell.assign_to_drivers') @endcan @endif {{-- {{ dd($user_company_info)}} --}} @can('shipping.send_order') @if($user_company_info && $user_company_info['shipping_company'] == 2) @elseif ($user_company_info && $user_company_info['shipping_company'] == 1) @endif @endcan {{-- @if (config('constants.assign_to_contacts')) @can('sell.assign_to_contacts') @endcan @endif --}}
@endif @endcomponent
@include('video.video_modal') @stop @section('javascript') @if ($is_installment_enabled) @endif @endsection