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

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

{{ csrf_field() }} {{ method_field('PATCH') }} @if ($mydetails != null) @endif @php $attn = ""; if ($mydetails->sex == 'm') $attn = __('Mr.')." "; if ($mydetails->sex == 'f') $attn = __('Mrs.')." "; if ($mydetails->sex == 'd') $attn = __('Dep.')." "; if ($mydetails->sex == 'fam') $attn = __('Fam.')." "; if ($mydetails->firstname != null) $attn .= $mydetails->firstname." "; if ($mydetails->name != null) $attn .= $mydetails->name; @endphp

{{ __('Invoice') }}

{{ __('Invoice date') }}:
{{ __('VAT number') }}:
{{ __('Invoice number') }}:
{{ __('Quantity') }}
{{ __('Product') }}
{{ __('Description') }}
{{ __('Unit Price') }}
{{ __('Amount') }}
@php $row = 0; @endphp @foreach ($quantity as $key => $value) @if ($value != null)
@php $row ++; @endphp @endif @if (($discountquantity[$key] != null) && ($key >0))
@php $row ++; @endphp @endif @endforeach @if ($discountquantity[0] != null)
@php $row ++; @endphp @endif @php $i=0; @endphp @while ($i<3)
@php $i ++; $row ++; @endphp @endwhile
{{ __('Total (excl. VAT)') }}

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