{{--**************** Onglet général *******************************--}}
@component('components.dates.select_simple',['label' => 'Date facture',
'value' => @$customer_invoice->cusInv_achievementDate,
'name' => 'cusInv_achievementDate','required' => 'false',
'disabled' => @$customer_invoice->cusInv_exported==1 ? 'true' : 'false'])
@endcomponent
@component('components.dates.select_simple',['label' => 'Date échéance',
'value' => @$customer_invoice->cusInv_deadlineDate,
'name' => 'cusInv_deadlineDate','required' => 'false',
'disabled' => @$customer_invoice->cusInv_exported==1 ? 'true' : 'false'])
@endcomponent
@component('components.select.select_status',['label' => '','status' =>$status_cusInv,'value' => $customer_invoice->sta_id,
'pref_name' => 'cusInv_','search' => 'true','emptyValue' => 'true', 'disabled' => @$customer_invoice->cusInv_exported==1 ? 'true' : 'false'])
@endcomponent
@component('components.select.select_tva',['tvas' => @$tvas,'value' => @$customer_invoice->tva_id,'search' => 'false','emptyValue' => 'true', 'required' => 'true', 'disabled' => @$customer_invoice->cusInv_exported==1 ? 'true' : 'false'])
@endcomponent
@if (Session::get('cusInv_select_billing_company')=='oui')
@component('components.select.select_billingcompany',['bilCompanies' => @$billings,'value' => @$customer_invoice->bil_id,'search' => 'true','emptyValue' => 'true','required' => 'true', 'disabled' => @$customer_invoice->cusInv_exported==1 ? 'true' : 'false'])
@endcomponent
@else
@endif
@component('components.cb_ouinon',['title' => 'Exportée en comptabilité ?',
'name' => 'cusInv_exported',
'value' => $customer_invoice->cusInv_exported,
'disabled' => $customer_invoice->cusInv_exported==1 ? 'true' : 'false'])
@endcomponent
@if($customer_invoice->cusInv_exported==1)
@if ($customer_invoice->cusInv_exportedDate !='0000-00-00 00:00:00' && $customer_invoice->cusInv_exportedDate !=null)
{{ __('Exportée le') }} : {{ date('d/m/Y', strtotime($customer_invoice->cusInv_exportedDate))}}
@endif
@endif
@component('components.cb_ouinon',['title' => 'Envoyée ?',
'name' => 'cusInv_sended',
'value' => $customer_invoice->cusInv_sended,
'disabled' => $customer_invoice->cusInv_exported==1 ? 'true' : 'false'])
@endcomponent
@if($customer_invoice->cusInv_sended==1)
{{ __('Envoyée le') }} : {{ date('d/m/Y', strtotime($customer_invoice->cusInv_dateSendedMailInvoice))}}
@endif
{{--**************** Onglet infos paiement *******************************--}}
@component('components.cb_ouinon',['title' => 'Payée ?',
'name' => 'cusInv_payed',
'value' => $customer_invoice->cusInv_payed])
@endcomponent
@component('components.dates.select_simple',['label' => 'Date paiement',
'value' => @$customer_invoice->cusInv_paymentDate,
'name' => 'cusInv_paymentDate','required' => 'false'])
@endcomponent
{{--