@extends('layouts.app') @section('styles') @endsection @section('content')

{{ __('Billing') }} @if ($myinvoice->organisationname != null) {{ $myinvoice->organisationname }} @else {{ $myinvoice->name }} @endif

{{ csrf_field() }} {{ method_field('PATCH') }}

{{ __('Invoice') }}

{{ __('Invoice date') }}:
{{ __('VAT number') }}:
{{ __('Invoice number') }}:
{{ __('Quantity') }}
{{ __('Product') }}
{{ __('Description') }}
{{ __('Unit Price') }}
{{ __('Amount') }}
@php $row = 0; @endphp @foreach ($myinvoicerows as $myinvoicerow)
unitprice!==null) value="{{ $myinvoicerow->unitprice }}" @endif>
amount!==null) value="{{ $myinvoicerow->amount }}" @endif>
@php $row ++; @endphp @endforeach
{{ __('Total (excl. VAT)') }}

{{ __('VAT') }} (%)
{{ __('Total (incl. VAT)') }}
@php $facilitatorname = ''; $sessionname = ''; $groupname = ''; @endphp @foreach ($myinvoicedetails as $invoicedetail) @if (($invoicedetail->facilitatorname != null ) && ($invoicedetail->facilitatorname != $facilitatorname))
{{ __('Facilitator') }}: {{ $invoicedetail->facilitatorname }}
{{ __('Name') }}
{{ __('Email') }}
{{ __('Profile') }}
{{ __('Date') }}
@php $facilitatorname = $invoicedetail->facilitatorname; @endphp @endif @if (($invoicedetail->sessionname != null ) && ($invoicedetail->sessionname != $sessionname))
{{ __('Session') }}: {{ $invoicedetail->sessionname }}
{{ $invoicedetail->information }}
{{ \Carbon\Carbon::parse($invoicedetail->sessionDate)->format('d-m-Y') }}
@php $sessionname = $invoicedetail->sessionname; @endphp @endif @if (($invoicedetail->groupname != null ) && ($invoicedetail->groupname != $groupname))
{{ __('Group') }}: {{ $invoicedetail->groupname }}
@php $groupname = $invoicedetail->groupname; @endphp @endif
{{ $invoicedetail->email }}
{{ strtok($invoicedetail->profilename, " ") }}
{{ \Carbon\Carbon::parse($invoicedetail->profileDate)->format('d-m-Y H:i:s') }}
@endforeach
@endsection @push('scripts') @endpush