{{-- section --}}
{{-- head --}} @section('head') @endsection {{-- endHead --}} {{-- ------------------------------------------------ --}} {{-- ------------------------------------------------ --}} {{-- ------------------------------------------------ --}}
{{-- invoice --}}
{{-- top --}}
{{-- image --}}
{{-- title --}}

{{ __('Invoice') }}

{{-- ----------------------- --}} {{-- ----------------------- --}} {{-- hr --}}
{{-- wrapper --}}
{{-- invoiceNumber --}}
{{ __('Invoice No') }} #{{ str_replace('INV-', '', $serviceSubInvoice->invoiceNumber) }}
{{-- date --}}
{{ __('Date') }} {{ date('d.m.Y', strtotime($serviceSubInvoice->invoiceDate)) }}
{{-- endRow --}} {{-- -------------------------------------- --}} {{-- -------------------------------------- --}} {{-- midRow --}}
{{-- leftSide --}}
{{-- title --}}

{{__ ('INVOICE TO') }}

{{-- name - address - country - email --}}

{{ $serviceSubInvoice?->client?->{__('name')} }}

{{ $serviceSubInvoice?->client?->{__('address')} ?? '—' }}

{{ $profile->{__('country')} }}

{{ $serviceSubInvoice?->client?->{__('email')} }}

{{-- rightSide --}}

{{ __('PAY TO') }}

{{-- details --}}

{{ $profile->{__('name')} }}

{{ $profile->{__('address')} }}

{{ $profile->{__('country')} }}

{{ $profile->email }}

{{-- endRow --}} {{-- -------------------------------------- --}} {{-- -------------------------------------- --}} {{-- content --}}
{{-- head --}} {{-- -------------------- --}} {{-- -------------------- --}} {{-- body --}} {{-- loop - items --}} {{-- fileNumber --}} {{-- invoiceNumber --}} {{-- information --}} {{-- invoiceAmount --}} {{-- endTR --}} {{-- ------------------- --}} {{-- ------------------- --}} {{-- subtotal --}} {{-- tax --}} {{-- total --}} {{-- endBody --}}
{{__('File No.')}} {{__('Invoice No.')}} {{__('Title')}} {{__('Date')}} {{__('Amount')}}
{{ $serviceSubInvoice->serviceFee->fileNumber ?? '—' }}{{ $serviceSubInvoice?->fullInvoiceNumber() }}{{ $serviceSubInvoice->{__('information')} }} {{ date('d / m / Y', strtotime($serviceSubInvoice->invoiceDate)) }}{{ number_format($serviceSubInvoice->invoiceAmount ?? 0, 2) }}
{{__('Subtotal')}} {{ number_format($serviceSubInvoice->invoiceAmount, 2) }}
{{__('Tax')}} (5%) +{{ $serviceSubInvoice->invoiceAmount * 0.05 }}
{{__('Grand Total')}} {{ number_format($serviceSubInvoice->invoiceAmount + ($serviceSubInvoice->invoiceAmount * 0.05), 2) }}
{{-- endRow --}} {{-- -------------------------------------- --}} {{-- -------------------------------------- --}} {{-- invoiceBottom --}}
{{-- terms --}}
{{-- title --}}

{{ __('Terms & Conditions') }}

{{-- 1: termsExists --}} @if ($serviceSubInvoice?->terms?->count() > 0) {{-- loop - terms --}} @foreach ($serviceSubInvoice?->terms ?? [] as $term) {{-- singlePoint --}}
{{ $term->{__('information')} }}
@endforeach {{-- end loop --}} {{-- ------------------------------ --}} {{-- ------------------------------ --}} {{-- ------------------------------ --}} {{-- ------------------------------ --}} {{-- 2: defaults --}} @else {{-- loop - defaultTerms --}} @foreach ($defaultTerms ?? [] as $defaultTerm) {{-- singlePoint --}}
{{ $defaultTerm }}
@endforeach {{-- end loop --}} @endif {{-- end if --}}
{{-- endTerms --}}
{{-- endRow --}}
{{-- ----------------------------- --}} {{-- ----------------------------- --}} {{-- ----------------------------- --}} {{-- captureButton --}}
{{-- endContainer --}} {{-- ------------------------------------------------ --}} {{-- ------------------------------------------------ --}} {{-- ------------------------------------------------ --}} {{-- section --}} @section('scripts') {{-- 1: html2canvas --}} @endsection {{-- endSection --}} {{-- ------------------------------------------------ --}} {{-- ------------------------------------------------ --}} {{-- ------------------------------------------------ --}}
{{-- endSection --}}