@if(!empty($sell_transfer->sell_lines))
@foreach($sell_transfer->sell_lines as $sell_line)
@endforeach
@endif
{!! Form::label('ref_no', __('purchase.ref_no') . ':*') !!}
{!! Form::text('ref_no', $sell_transfer->ref_no, ['class' => 'form-control', 'required']) !!}
{!! Form::label('status', __('sale.status') . ':*') !!} @show_tooltip(__('lang_v1.completed_status_help'))
{!! Form::select('status',
[
'pending' => 'Pending',
'in_transit' => 'In Transit',
'completed' => 'Completed',
'cancelled' => 'Cancelled'
],
$sell_transfer->status, [
'class' => 'form-control select2',
'placeholder' => __('messages.please_select'),
'required',
'id' => 'status'
]) !!}
{!! Form::label('location_id', __('lang_v1.location_from') . ':*') !!}
{!! Form::select('location_id', $business_locations, $sell_transfer->location_id, [
'class' => 'form-control select2',
'placeholder' => __('messages.please_select'),
'required',
'id' => 'location_id'
]) !!}
{!! Form::label('transfer_location_id', __('lang_v1.location_to') . ':*') !!}
{!! Form::select('transfer_location_id', $business_locations, $purchase_transfer->location_id, [
'class' => 'form-control select2',
'placeholder' => __('messages.please_select'),
'required',
'id' => 'transfer_location_id'
]) !!}
{!! Form::label('vehicle', __('Vehicle') . ':') !!}
{!! Form::text('vehicle', $sell_transfer->vehicle, ['class' => 'form-control']) !!}
{!! Form::label('driver', __('Driver') . ':') !!}
{!! Form::text('driver', $sell_transfer->driver, ['class' => 'form-control']) !!}
{!! Form::label('mileage', __('Mileage (KM)') . ':') !!}
{!! Form::number('mileage', $sell_transfer->mileage, ['class' => 'form-control', 'step' => 'any']) !!}
{!! Form::label('factory_dispatched_atc', __('Factory Dispatched ATC') . ':') !!}
{!! Form::text('factory_dispatched_atc', $sell_transfer->factory_dispatched_atc, ['class' => 'form-control']) !!}
{!! Form::label('depot_manager', __('Depot Manager') . ':') !!}
{!! Form::text('depot_manager', $sell_transfer->depot_manager, ['class' => 'form-control']) !!}
{!! Form::label('depot', __('Depot') . ':') !!}
{!! Form::text('depot', $sell_transfer->depot, ['class' => 'form-control']) !!}
{!! Form::label('grade', __('Grade') . ':') !!}
{!! Form::text('grade', $sell_transfer->grade, ['class' => 'form-control']) !!}
{!! Form::label('region', __('Region') . ':') !!}
{!! Form::select('region', [
'North-East' => 'North-East',
'North-Central' => 'North-Central',
'North-West' => 'North-West',
'South-East' => 'South-East',
'South-South' => 'South-South',
'South-West' => 'South-West'
], $sell_transfer->region, ['class' => 'form-control select2', 'placeholder' => __('messages.please_select')]) !!}
{!! Form::label('waybill_no', __('Waybill No') . ':') !!}
{!! Form::text('waybill_no', $sell_transfer->waybill_no, ['class' => 'form-control']) !!}
@endcomponent
@component('components.widget', ['class' => 'box-solid'])
{!! Form::label('shipping_charges', __('lang_v1.shipping_charges') . ':') !!}
{!! Form::text('shipping_charges', @num_format($sell_transfer->shipping_charges), ['class' => 'form-control input_number', 'placeholder' => __('lang_v1.shipping_charges')]); !!}
{!! Form::label('additional_notes',__('purchase.additional_notes')) !!}
{!! Form::textarea('additional_notes', $sell_transfer->additional_notes, ['class' => 'form-control', 'rows' => 3]); !!}
@php
$final_total = $subtotal + $sell_transfer->shipping_charges;
@endphp