@extends((( Request::ajax()) ? 'layouts.model' : 'layouts.app' )) @section('include_css') @endsection @section('content') @if ($page == 'invoice') @endif

{{ $header }} - {{ $invoice->invoice_code ?? '' }}

    {{-- @if (isset($invoice->status) && $invoice->status == 'Q') --}} {{-- @else --}} @can('ORDER_PRINT') @endcan @can('CONVERT_TO_INVOICE') @endcan {{-- @endif --}} @can('CONVERT_READY_TO_DISPATCH') @endcan @if (isset($credit_note) && count($credit_note) != 0) @endif @if (isset($invoice->quotation_id)) @endif
@csrf
@include('xcustomer::customer_filter')
{{ formText(__('xinvoice::invoice.labels.invoice_no'), 'invoice_no', $invoice->invoice_code ?? '', ['class' => 'form-control ','id' => 'invoice_no','readonly' => 'readonly']) }}
{{ formDate(__('xinvoice::invoice.labels.invoice_date'),'invoice_date_created',isset($invoice->invoice_date) ? $invoice->invoice_date : Carbon\Carbon::today()->format('Y-m-d'),['class' => 'form-control', 'id' => 'invoice_date_created']) }}
@php $users = \Pramix\XUser\Models\User::pluck('username', 'id'); @endphp {{ formDropdown('Rep', 'rep', $users, isset($invoice->rep_id) ? $invoice->rep_id : Auth::id(), ['class' => 'form-control select2 validate[required]','id' => 'rep']) }}
@include('xproduct::product_filter', [ 'only_available_stock_product' => false, ])
{{ formTextArea(__('xinvoice::invoice.labels.remarks'), 'remarks', $invoice->remarks ?? '', ['class' => 'form-control','id' => 'remarks','rows' => 2]) }}
@if (getConfig('INVOICE_TAX') == 'TRUE')
vat_amount) && $invoice->vat_amount != 0) checked @endif />
15%
nbt_amount) && $invoice->nbt_amount != 0) checked @endif />
2%
@endif
{{ Form::select('discount_type',getConfig('DISCOUNT_TYPE'),isset($invoice->discount_type) ? $invoice->discount_type : getConfigValue('DISCOUNT_TYPE'),['class' => 'form-control', 'id' => 'invoice_discount_type']) }}
@if ($page == 'invoice')
@endif
@include('xinvoice::payment_filter')
@include('xgeneral::comment_section')
{{-- Customer Unblock Modal--}}
@endsection @section('include_js') @endsection @section('custom_script') @endsection