{{ __('saas_invoice_details') }}: {{ $invoice->house->reference }}
{{ __('saas_table_invoice_number') }} {{ $invoice->number }} @if(!$invoice->deleted_at && Storage::exists($invoice->real_path)) @can('print_invoices')
{{ __('button_print') }}
@endcan @else {{ __('file_not_exist') }} @endif
{{ __('saas_table_period') }}: {{ $invoice->period }}
{{ __('saas_table_amount_ht') }}: {{ format_amount($invoice->total, $invoice->currency) }}
{{ __('saas_table_tva') }}: {{ $invoice->tva }}%
{{ __('saas_table_amount_ttc') }}: {{ format_amount($invoice->total_ttc, $invoice->currency) }}
{{ __('saas_table_pay') }}: {{ format_amount($invoice->amount, $invoice->currency) }}
{{ __('saas_table_solde') }}: {{ format_amount($invoice->balance, $invoice->currency) }}
{{ __('saas_dashboard_actors') }}
@foreach($invoice->actors as $actor)
{{ $actor->type_description }}: {{ $actor->full_name }} @if($actor->is_facilities_payees) {{ __('saas_house_facility_payer') }} @endif
@endforeach
{{ __('admin_dashboard_facilities') }}
@foreach ($invoice->items as $facility) @endforeach
# {{ __("admin_table_facility") }} {{ __("admin_table_amount") }}
{{ $facility->id }}

{{ $facility->facility->full_name }}

{{ format_amount($facility->price, $invoice->currency) }}
@can('payment_list_invoices')
{{ __('admin_invoice_historical') }}
@can('payment_print_invoices') @endcan @foreach ($invoice->payments as $payment ) @endforeach
# {{ __('admin_table_reference') }} {{ __("admin_table_date") }} {{ __("admin_table_payment_mode") }} {{ __("admin_table_amount") }}
{{ $loop->index + 1 }} {{ $payment->reference }} {{ $payment->date_emit }} {{ $payment->mode->description }} {{ format_amount($payment->amount, $invoice->currency) }} @can('payment_print_invoices')
@endcan
@endcan
{{ __('button_cancel') }}