@extends('layouts.app') @php $title = __('purchase.all_payment'); @endphp @section('title', $title) @section('content')

{{$title}}

@component('components.widget', ['class' => 'box-solid'])
{!! Form::label('select_location_id', __('Location Name') . ':*') !!}
{!! Form::hidden('location_id', null, ['id' => 'location_id', 'data-receipt_printer_type' => !empty($default_location->receipt_printer_type) ? $default_location->receipt_printer_type : 'browser', 'data-default_payment_accounts' => $default_location->default_payment_accounts ?? '']); !!} @if(count($business_locations) > 1)
{!! Form::select('select_location_id', $business_locations, null, ['placeholder' => __('messages.please_select'), 'class' => 'form-control input-sm', 'id' => 'select_location_id', 'required', 'autofocus'], $bl_attributes); !!}
@else {{$default_location->name}} @endif
{!! Form::label('contact_id', __('Contact Name') . ':*') !!}
{!! Form::select('contact_id', ['' => 'Please Select'] + $all_contact, null, ['class' => 'form-control select2', 'id'=>'select_contact_id', 'required']) !!}
{!! Form::label('all_payment_date_range', __('report.date_range') . ':') !!}
{!! Form::text('all_payment_date_range', now(), ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'id' => 'all_payment_date_range', 'required', 'readonly']); !!}
{!! Form::label('due_payment_type', __('Type') . ':*') !!}
{!! Form::select('due_payment_type', ['' => 'Please Select', 'purchase' => 'Purchase','purchase_return' => 'Purchase eturn','sell' => 'Sell','sell_return'=>'Sell Return'], null, ['class' => 'due_payment_type form-control select2', 'id'=>'due_payment_type', 'required']) !!}
{!! Form::label("method" , __('purchase.payment_method') . ':*') !!}
{!! Form::select("method", ['' => 'Please Select'] + $payment_types, null, ['class' => 'form-control select2', 'id' => 'payment_method', 'required', 'style' => 'width:100%;']); !!}
@component('components.widget', ['class' => 'box-primary', 'title' => __('Payment List')])
@lang('lang_v1.action') @lang('contact.name') @lang('messages.date') @lang('lang_v1.contact_id') @lang('sale.location') @lang('Old Due') @lang('Today Pay') @lang('Balance')
@endcomponent @endcomponent
@stop @section('javascript') @if(in_array('tables' ,$enabled_modules) || in_array('modifiers' ,$enabled_modules) || in_array('service_staff' ,$enabled_modules)) @endif @endsection