@extends('layouts.app') @section('content')
  @lang('layout.Enterbill')
{{Form::open(['route' => 'gBill.store','method' => 'POST','class' => 'form-horizontal','id'=>'gas-purchase-form'])}}
@{{ errors.first('vendor') }}
@{{ errors.first('number') }}
@{{ errors.first('currency') }}
@{{ errors.first('currency_rate') }}
@if(auth()->user()->company()->first()->tag != 1)
@{{ errors.first('currency_rate') }}
@endif
@{{selected_currency.symbol}} %
@{{errors.first('date')}}
@{{errors.first('description')}}
@if(getSerailNumber() =="true") @endif @if(getSerailNumber() =="true") @endif
# @lang('layout.Category') @lang('layout.SerialNum') @lang('layout.ItemName') @lang('layout.SiteName') @lang('layout.Description') @lang('layout.ExpireDate') @lang('layout.Quantity') @lang('layout.OnHand') @lang('layout.OMeasureValue') 1 @lang('layout.OMeasureValue') 2 @lang('layout.Measure') @lang('layout.NewCost') @lang('layout.Discount') @lang('layout.Total')
@{{index+1}} @{{ errors.first('inventory_id['+index+']') }} @{{ errors.first('quantity['+index+']') }} @{{myRound((item.item==null)?null:purchaseItemQuantity(item.item,item.item.quantity))}}
@{{selected_currency.symbol}}
@{{selected_currency.symbol}} %
@{{ (item.item==null)?null:getItemTotal(item.item,selected_currency.rate,discountIsAmount,item.item.discount,selected_currency.hq_rate).result }} @{{selected_currency.symbol}}

# @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}}
@{{ (payment.item==null)?null:totalPayment(payment.item,selected_currency.rate,selected_currency.hq_rate).result }} @{{selected_currency.symbol}}
@if(systemConfig()[7] != 0)
# @lang('layout.Transporter_name') @lang('layout.PlateNumber') @lang('layout.TransitNumber') @lang('layout.TankerNumber') @lang('layout.WayBillNumber') @lang('layout.SourcePlace') @lang('layout.Destination') @lang('layout.LoadingDate') @lang('layout.ItemName') @lang('layout.SiteName') @lang('layout.Quantity') @lang('layout.Measure') @lang('layout.Amount') @lang('layout.Currency') @lang('layout.Rate')
@{{index+1}}
@endif
@lang('layout.Cancel')
{!! Form::close() !!}
@endsection @include("layouts.Cmodal") @include("bills.modal") @push('scripts') @endpush