@extends('layouts.app') @php $title = __('purchase.add_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', $default_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, $default_location->id ?? null , ['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' => 'getContact form-control select2', 'id'=>'getContact', 'required']) !!}
{!! Form::label('due_payment_type', __('Type') . ':*') !!}
{!! Form::select('due_payment_type', ['purchase' => 'Purchase','purchase_return' => 'Purchase eturn','sell' => 'Sell','sell_return'=>'Sell Return'], 'sell', ['class' => 'due_payment_type form-control select2', 'id'=>'due_payment_type', 'required']) !!}
@endcomponent
@stop @section('javascript') @if(in_array('tables' ,$enabled_modules) || in_array('modifiers' ,$enabled_modules) || in_array('service_staff' ,$enabled_modules)) @endif @endsection