@foreach ($cus_invoices as $cus_invoice) @endforeach
{{ __('Etat') }} # {{ __('Devis') }} {{ __(' HT') }} {{ __(' TTC') }} {{ __('Tva') }} {{ __('Date facture') }} {{ __('Date échéance') }} {{ __('Payée') }} {{ __('Date règlement') }} {{ __('Date envoi mail') }} {{ __('Fichier') }}
{!! $cus_invoice->sta_nameFr !!} {!! $cus_invoice->cusInv_number !!} @if( $cus_invoice->cusQuo_id!='') #{!! $cus_invoice->cusQuo_number !!} @endif {{ number_format((float)$cus_invoice->cusInv_amountHT, 2, '.', ' ') }} € {{ number_format((float)$cus_invoice->cusInv_amountTTC, 2, '.', ' ') }} € {!! $cus_invoice->cusInv_tva !!}% {{ $cus_invoice->cusInv_achievementDate!='' ? date('d/m/Y',strtotime($cus_invoice->cusInv_achievementDate)) : '' }} {{ $cus_invoice->cusInv_deadlineDate!='' ? date('d/m/Y', strtotime($cus_invoice->cusInv_deadlineDate)) : '' }} @if( $cus_invoice->cusInv_payed=='1') {{ __('oui') }} @else {{ __('non') }} @endif {{ $cus_invoice->cusInv_paymentDate!='' ? date('d/m/Y', strtotime($cus_invoice->cusInv_paymentDate)) : ''}} {{ date_en_fr($cus_invoice->cusInv_dateSendedMailInvoice) }} @if ((Session::get('admin_delete_only')=='non') || ((Session::get('admin_delete_only')=='oui') && (Auth::user()->role=="admin")) ) @if (Session::get('del_cusInv_possible')=='oui') @endif @endif
@if ( Route::current()->getName()=='editIntCusInv_edit' )


{{ __('Détail facture client') }}
@csrf {{ csrf_field() }}
{{ __('Facture client n°') }} #{{ $customer_invoice->cusInv_number }}

{{--**************** Onglet général *******************************--}}

@component('components.dates.select_simple',['label' => 'Date facture', 'value' => @$customer_invoice->cusInv_achievementDate, 'name' => 'cusInv_achievementDate','required' => 'false']) @endcomponent
@component('components.dates.select_simple',['label' => 'Date échéance', 'value' => @$customer_invoice->cusInv_deadlineDate, 'name' => 'cusInv_deadlineDate','required' => 'false']) @endcomponent
@component('components.select.select_status',['label' => '','status' =>$status_cusInv,'value' => $customer_invoice->sta_id, 'pref_name' => 'cusInv_','search' => 'true','emptyValue' => 'true']) @endcomponent
@component('components.select.select_tva',['tvas' => @$tvas,'value' => @$customer_invoice->tva_id,'search' => 'false','emptyValue' => 'true', 'required' => 'true']) @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']) @endcomponent
@else @endif
@component('components.cb_ouinon',['title' => 'Exportée en comptabilité ?', 'name' => 'cusInv_exported', 'value' => $customer_invoice->cusInv_exported]) @endcomponent
@if($customer_invoice->cusInv_exported==1)
@if ($customer_invoice->cusInv_exportedDate !='0000-00-00 00:00:00')
{{ __('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]) @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
{{--
{{ __('Date facture') }} : {{ date('d/m/Y', strtotime($customer_invoice->cusInv_achievementDate))}}

--}}

{{ __('Aperçu de la facture') }}
{!! $tableaudetail !!}
@endif
@push('custom-scripts') @endpush @include('modales.interventions.delete_cusInv')