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

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

@endsection @section('content')

{{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')}}


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

{{trans('invoices.invoice_properties')}}

{{ Form::text('order_id', null, ['class' => 'form-control round', 'placeholder' => '#'.trans('orders.order'),'id'=>'order_id']) }}
{{ Form::number('tid', @$last_invoice->tid+1, ['class' => 'form-control round', 'placeholder' => trans('invoices.tid')]) }}
{{ Form::text('refer', null, ['class' => 'form-control round', 'placeholder' => trans('general.reference')]) }}
{{ Form::text('invoicedate', null, ['class' => 'form-control round required', 'placeholder' => trans('invoices.invoicedate'),'data-toggle'=>'datepicker','autocomplete'=>'false']) }}
@if($sub)
@else
{{ Form::text('invoiceduedate', null, ['class' => 'form-control round required', 'placeholder' => trans('invoices.invoicedate'),'data-toggle'=>'datepicker','autocomplete'=>'false']) }}
@endif
{{ Form::textarea('notes', null, ['class' => 'form-control round', 'placeholder' => trans('invoices.invoice_note'),'rows'=>'2']) }}
{{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')}}
0 {{config('currency.symbol')}} 0

{{ Form::hidden('subtotal','0',['id'=>'subttlform']) }} {{trans('general.total_tax')}} {{config('currency.symbol')}} 0
{{trans('general.total_discount')}} 0
@if(isset($employees[0])){{trans('general.employee')}} @endif {{trans('general.shipping')}} {{config('currency.symbol')}} 0 )
{{trans('general.payment_currency_client')}} {{trans('general.based_live_market')}} {{trans('general.extra_discount')}} ( {{config('currency.symbol')}} 0 )
{{trans('general.payment_terms')}} {{trans('general.grand_total')}} ({{config('currency.symbol')}})
{{trans('sales_channel.sales_channel')}}
{!! $fields !!}
@if(@$defaults[4][0]->ship_tax['id']>0) @else @endif
@include("focus.modal.customer") @include("focus.modal.stock_alert_model") @endsection @section('extra-scripts') @endsection