@extends ('core.layouts.pos_app') @section ('title', trans('pos.sale')) @section('page-header')

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

@endsection @section('content') {{ Form::model($invoices, ['id' => 'data_form']) }}
Loading...
{{ Form::hidden('customer_id', $invoices['customer_id'],['id'=>'customer_id']) }}
{{trans('general.extra_discount')}} ( {{config('currency.symbol')}} {{numberFormat($invoices['extra_discount'])}} )
{{trans('general.shipping')}} ( {{trans('general.tax')}} {{config('currency.symbol')}} 0 )
{{trans('general.payment_currency_client')}} {{trans('general.based_live_market')}}
{{trans('general.payment_terms')}}

{{ Form::number('tid', null, ['class' => 'form-control round', 'placeholder' => trans('invoices.tid')]) }}
{{ Form::text('refer', null, ['class' => 'form-control round', 'placeholder' => trans('general.reference')]) }}
{{ Form::text('invoicedate', date_for_database($invoices['invoicedate']), ['class' => 'form-control round required', 'placeholder' => trans('invoices.invoice_date'),'data-toggle'=>'datepicker','autocomplete'=>'false','id'=>'date1']) }}
{{ Form::text('invoiceduedate', date_for_database($invoices['invoiceduedate']), ['class' => 'form-control round required', 'placeholder' => trans('invoices.invoice_due_date'),'data-toggle'=>'datepicker','autocomplete'=>'false','id'=>'date2']) }}
{{ Form::textarea('notes', null, ['class' => 'form-control round', 'placeholder' => trans('invoices.invoice_note'),'rows'=>'2']) }}
{{trans('pos.order_panel')}}
{{trans('customers.customer')}}
{{$invoices->customer->name}}
{{trans('pos.cart_items')}}
@php $total_tax=0; @endphp @foreach($invoices->products as $product) @php $total_tax+=$product['total_tax']; @endphp
{{$product['product_name']}}
{{numberFormat($product['product_price'])}}
+
-
@php $counter=$loop->index; @endphp @endforeach
{{ Form::hidden('subtotal',null,['id'=>'subttlform']) }}
{{trans('general.total_tax')}}: {{config('currency.symbol')}} {{numberFormat($total_tax)}}
{{trans('general.total_discount')}}: {{config('currency.symbol')}} {{numberFormat($invoices['discount']-$invoices['extra_discount'])}}
{{trans('general.total')}}: {{config('currency.symbol')}} {{numberFormat($invoices['total'])}}
@include("focus.modal.pos_payment") @include("focus.modal.pos_save_draft") @include("focus.modal.customer") @include("focus.modal.pos_stock") @include("focus.modal.pos_print") @include("focus.modal.pos_register") @include("focus.modal.pos_close_register") @endsection @section('extra-scripts') @endsection