@extends ('core.layouts.app') @section ('title', $words['title']) @section('page-header')

{{ trans('labels.backend.invoices.management') }} {{ trans('labels.backend.invoices.edit') }}

@endsection @section('content')
{{ Form::model($orders, [ 'class' => 'form-horizontal', 'role' => 'form', 'method' => 'PUT', 'id' => 'data_form','files'=>true]) }}

{{$words['bill_to_from']}} {{$words['add_person']}}

{{ Form::label( 'cst',$words['search_person'],['class' => 'caption']) }} {{ Form::text('cst', null, ['class' => 'form-control round', 'placeholder' =>trans('invoices.enter_customer'), 'id'=>'customer-box','autocomplete'=>'off']) }}
{{$words['person_details']}}
{{$orders->customer->name}}
{{$orders->customer->address}} , {{$orders->customer->city}}
{{$orders->customer->phone}}


{{trans('warehouses.warehouse')}} {{ Form::hidden('customer_id', $orders['customer_id'],['id'=>'customer_id']) }}

{{$words['properties']}}

{{ Form::number('tid',null, ['class' => 'form-control round', 'placeholder' => trans('general.serial_no'),'readonly'=>'']) }}
{{ Form::text('refer', null, ['class' => 'form-control round', 'placeholder' => trans('general.reference')]) }}
{{ Form::text('invoicedate','', ['class' => 'form-control round required', 'placeholder' => trans('general.date'),'data-toggle'=>'datepicker','autocomplete'=>'false','id'=>'date1']) }}
{{ Form::text('invoiceduedate', date_for_database($orders['invoiceduedate']), ['class' => 'form-control round required', 'placeholder' => trans('general.due_date'),'data-toggle'=>'datepicker','autocomplete'=>'false','id'=>'date2']) }}
{{ Form::textarea('notes', null, ['class' => 'form-control round', 'placeholder' => trans('general.note'),'rows'=>'2']) }}
@php $total_tax=0; @endphp @foreach($orders->products as $product) @php $total_tax+=$product['total_tax']; @endphp @php $counter=$loop->index; @endphp @endforeach
{{trans('general.item_name')}} {{trans('general.quantity')}} {{trans('general.rate')}} {{trans('general.tax_p')}} {{trans('general.tax')}} {{trans('general.discount')}} {{trans('general.amount')}} ({{config('currency.symbol')}}) {{trans('general.action')}}
{{numberFormat($product['total_tax'])}} {{config('currency.symbol')}} {{numberFormat($product['product_subtotal'])}}

{{ Form::hidden('subtotal',null,['id'=>'subttlform']) }} {{trans('general.total_tax')}} {{config('currency.symbol')}} {{numberFormat($total_tax)}}
{{trans('general.total_discount')}} {{numberFormat($orders['discount']-$orders['extra_discount'])}}
{{trans('general.shipping')}} ( {{trans('general.tax')}} {{config('currency.symbol')}} {{numberFormat($orders['ship_tax'])}} )
{{trans('general.extra_discount')}} ( {{config('currency.symbol')}} {{numberFormat($orders['extra_discount'])}} )
{{trans('general.payment_currency_client')}} {{trans('general.based_live_market')}} {{trans('general.grand_total')}} ({{config('currency.symbol')}})
{{trans('general.payment_terms')}}
{!! $fields_data !!}
@include("focus.modal.customer") @section('extra-scripts') @endsection @endsection