@extends('layouts.app') @section('content') @include("layouts.Cmodal") @include("invoices.modal") @include("layouts.Drivermodal")
  @lang('layout.VehicleRentEdit')
{{Form::model($vehicleM,['route' => ['rentVehicle.update',$vehicleM->id],'method' => 'PATCH','class' => 'form-horizontal','id'=>'vehicle-form'])}} {{ csrf_field() }}
@{{ errors.first('customer') }}
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
{{Form::text('date',null,['class' => 'form-control date','placeholder' => __('layout.Date'),'v-validate' =>'""','data-vv-as' => __('layout.Date')])}}
@{{ errors.first('driver') }}
{{Form::textarea('description',null,['class' => 'form-control','rows' => '1'])}}
{{Form::text('phone1',null,['class' => 'form-control','placeholder' => __('layout.Phone'),'v-validate' =>'""','data-vv-as' => __('layout.Phone')])}}
{{Form::text('phone2',null,['class' => 'form-control','placeholder' => __('layout.Phone'),'v-validate' =>'""','data-vv-as' => __('layout.Phone')])}}
{{Form::text('discharge_date',null,['class' => 'form-control date','placeholder' => __('layout.DischargeDate'),'v-validate' =>'""','data-vv-as' => __('layout.DischargeDate')])}}
{{Form::text('bilance_date',null,['class' => 'form-control date','placeholder' => __('layout.BilanceDate')])}}

@lang('layout.Total') : @{{ myRound((subtotal - (discount*subtotal/100))-payeds)}} @{{selected_currency.symbol}}
@lang('layout.Payment'): @{{ payeds.toFixed(precision())}} @{{selected_currency.symbol}}
@lang('layout.Sub-Total'): @{{ myRound(subtotal)}} @{{selected_currency.symbol}}
@lang('layout.VehicleName') @lang('layout.Tanker') @lang('layout.Quantity') @lang('layout.Price') @lang('layout.Measure') @lang('layout.Total')
@{{ errors.first('car_id') }}
@{{ errors.first('qty') }}
@{{ errors.first('amount') }} @{{selected_currency.symbol}}
@{{selected_currency.symbol}}
{!! Form::text('road', null, array('placeholder' =>__('layout.Road'),'class' => 'form-control','autocomplete'=>'off')) !!}
{!! Form::text('location', null, array('placeholder' =>__('layout.Location'),'class' => 'form-control','autocomplete'=>'off')) !!}
{!! Form::text('source', null, array('placeholder' =>__('layout.Source'),'class' => 'form-control','autocomplete'=>'off')) !!}
{!! Form::text('destination', null, array('placeholder' =>__('layout.Destination'),'class' => 'form-control')) !!}

@lang('layout.Recevies')

# @lang('layout.SelectBank') @lang('layout.Amount') @lang('layout.Rate') @lang('layout.Currency') @lang('layout.Amount') @lang('layout.Total')
@{{index+1}} @{{myRound(Number((recevie.item==null)?null:recevie.item.balance)+Number((recevie.item==null)?null:recevie.item.amount))}}
@{{(recevie.item==null)?null:recevie.item.code}}
@{{selected_currency.symbol}}

@lang('layout.Payment')

# @lang('layout.SelectBank') @lang('layout.Amount') @lang('layout.Rate') @lang('layout.Currency') @lang('layout.Amount') @lang('layout.Total')
@{{index+1}} @{{myRound(Number((payment.item==null)?null:payment.item.balance)-Number((payment.item==null)?null:payment.item.amount))}}
@{{(payment.item==null)?null:payment.item.code}}
@{{selected_currency.symbol}}
{!! Form::text('expense_ref_number', null, array('placeholder' =>__('layout.ExpenseRefNumber'),'class' => 'form-control','autocomplete'=>'off')) !!}
@lang('layout.Cancel')
{!! Form::close() !!}

 

 

@endsection @push('scripts') @endpush