@component('components.filters', ['title' => __('report.filters')])
@if(auth()->user()->can('superadmin'))
{!! Form::label('po_list_filter_business_id', __('superadmin::lang.business_name') . ':') !!}
{!! Form::select('po_list_filter_business_id', $businesses, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'placeholder' => __('lang_v1.all'),
]) !!}
@endif
{!! Form::label('po_list_filter_location_id', __('purchase.business_location') . ':') !!}
{!! Form::select('po_list_filter_location_id', $business_locations, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'placeholder' => __('lang_v1.all'),
]) !!}
{{-- Warehouse buys from manufacturers; store from suppliers. --}}
{!! Form::label('po_list_filter_supplier_id', (session('business.is_supplier_warehouse') ? __('lang_v1.manufacturer') : __('purchase.supplier')) . ':') !!}
{!! Form::select('po_list_filter_supplier_id', $suppliers, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'placeholder' => __('lang_v1.all'),
]) !!}
{!! Form::label('po_list_filter_status', __('sale.status') . ':') !!}
{!! Form::select('po_list_filter_status', $purchaseOrderStatuses, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'placeholder' => __('lang_v1.all'),
]) !!}
@if (!empty($shipping_statuses))
{!! Form::label('shipping_status', __('lang_v1.shipping_status') . ':') !!}
{!! Form::select('shipping_status', $shipping_statuses, null, [
'class' => 'form-control select2',
'style' => 'width:100%',
'placeholder' => __('lang_v1.all'),
]) !!}
@endif
{!! Form::label('po_list_filter_date_range', __('report.date_range') . ':') !!}
{!! Form::text('po_list_filter_date_range', null, [
'placeholder' => __('lang_v1.select_a_date_range'),
'class' => 'form-control',
'readonly',
]) !!}
@endcomponent
@component('components.widget', ['class' => 'box-primary', 'title' => __('lang_v1.all_purchase_orders')])
@can('purchase_order.create')
@slot('tool')
@endslot
@endcan
| @lang('messages.action') |
@lang('messages.date') |
@lang('purchase.ref_no') |
@if(auth()->user()->can('superadmin'))
@lang('superadmin::lang.business_name') |
@endif
@lang('purchase.location') |
@lang(session('business.is_supplier_warehouse') ? 'lang_v1.manufacturer' : 'purchase.supplier') |
@lang('sale.status') |
@lang('lang_v1.quantity_remaining') |
@lang('lang_v1.shipping_status') |
@lang('lang_v1.added_by') |
@endcomponent
@stop
@section('javascript')
@includeIf('purchase_order.common_js')
@endsection