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

@lang( 'sale.sells')

@component('components.filters', ['title' => __('report.filters')]) @if(empty($only) || in_array('sell_list_filter_location_id', $only))
{!! Form::label('sell_list_filter_location_id', __('purchase.business_location') . ':') !!} {!! Form::select('sell_list_filter_location_id', $business_locations, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all') ]); !!}
@endif @if(empty($only) || in_array('sell_list_filter_customer_id', $only))
{!! Form::label('sell_list_filter_customer_id', __('contact.customer') . ':') !!} {!! Form::select('sell_list_filter_customer_id', $customers, null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all')]); !!}
@endif @if(empty($only) || in_array('sell_list_filter_payment_status', $only))
{!! Form::label('sell_list_filter_payment_status', __('purchase.payment_status') . ':') !!} {!! Form::select('sell_list_filter_payment_status', ['paid' => __('lang_v1.paid'), 'due' => __('lang_v1.due'), 'partial' => __('lang_v1.partial'), 'overdue' => __('lang_v1.overdue'),'installmented' => __('lang_v1.installmented')], null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('lang_v1.all')]); !!}
@endif @if(empty($only) || in_array('sell_list_filter_date_range', $only))
{!! Form::label('sell_list_filter_date_range', __('report.date_range') . ':') !!} {!! Form::text('sell_list_filter_date_range', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'readonly']); !!}
@endif @if((empty($only) || in_array('created_by', $only)) && !empty($sales_representative))
{!! Form::label('created_by', __('report.user') . ':') !!} {!! Form::select('created_by', $sales_representative, null, ['class' => 'form-control select2', 'style' => 'width:100%']); !!}
@endif @endcomponent @component('components.widget', ['class' => 'box-primary', 'title' => __( 'lang_v1.all_sales')]) @if(auth()->user()->can('installment.view') || auth()->user()->can('direct_sell.access') || 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
@lang('messages.action') @lang('messages.date') @lang('sale.invoice_no') @lang('sale.customer_name') @lang('lang_v1.contact_no') @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.total_items') @lang('lang_v1.types_of_service') {{ $custom_labels['types_of_service']['custom_field_1'] ?? __('lang_v1.service_custom_field_1' )}} @lang('lang_v1.added_by') @lang('sale.sell_note') @lang('sale.staff_note') @lang('sale.shipping_details') @lang('restaurant.table') @lang('restaurant.service_staff')
@endif @endcomponent
@stop @section('javascript') @endsection