@extends ('core.layouts.app') @section ('title', trans('labels.backend.invoices.management') . ' | ' . trans('labels.backend.invoices.edit')) @section('page-header')

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

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

{{trans('invoices.bill_to')}} {{trans('invoices.add_client')}}

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


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

{{trans('quotes.properties')}}

{{ Form::number('tid',null, ['class' => 'form-control round', 'placeholder' => trans('quotes.quote'),'readonly'=>'']) }}
{{ Form::text('refer', null, ['class' => 'form-control round', 'placeholder' => trans('general.reference')]) }}
{{ Form::text('invoicedate','', ['class' => 'form-control round required', 'placeholder' => trans('quotes.invoicedate'),'data-toggle'=>'datepicker','autocomplete'=>'false','id'=>'date1']) }}
{{ Form::text('invoiceduedate', date_for_database($quotes['invoiceduedate']), ['class' => 'form-control round required', 'placeholder' => trans('quotes.invoicedate'),'data-toggle'=>'datepicker','autocomplete'=>'false','id'=>'date2']) }}
{{ Form::textarea('notes', null, ['class' => 'form-control round', 'placeholder' => trans('quotes.notes'),'rows'=>'2']) }}
{{ Form::textarea('proposal', null, ['class' => 'form-control round html_editor', 'placeholder' => trans('quotes.proposal'),'rows'=>'3']) }}
@php $total_tax=0; @endphp @foreach($quotes->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($quotes['discount']-$quotes['extra_discount'])}}
{{trans('general.shipping')}} ( {{trans('general.tax')}} {{config('currency.symbol')}} {{numberFormat($quotes['ship_tax'])}} )
{{trans('general.extra_discount')}} ( {{config('currency.symbol')}} {{numberFormat($quotes['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