@inject('helperService', \App\Services\HelperService::class)
{{ $brandProfile->name }}
{{ $brandProfile->address }}
{{ $brandProfile->city }}
{{ $brandProfile->mobile1 }}
{{ $brandProfile->email1 }}
|
{{ $owner->name }}
{{ $owner->user->first_name }} {{ $owner->user->last_name }}
|
{{ $title }}
{{ __('Date Range') . ': ' . $dateRange }}
{{ __('Generated in') . ': ' . now()->format('d.m.Y H:i') }}
|
{{ __('Sessions Count') }}
{{ $owner->totals->sessions_count }}
|
{{ __('Sessions Total') }}
{{ $owner->totals->total }}
|
{{ __('Invoiced Total') }}
{{ $owner->totals->invoiced }}
|
{{ __('Not Invoiced Total') }}
{{ $owner->totals->not_invoiced }}
|
# | {{ __('Date') }} | {{ __('Location') }} | {{ __('Value') }} | {{ __('Invoice') }} |
{{ $loop->iteration }} | {{ Carbon\Carbon::parse($session->date)->format('d.m.Y') }} | {{ $session->location->name ?? ($session->owner->name ?? '') }} | {{ $helperService->formatAsDecimal($session->sessionServices->sum('total_price')) }} | {{ !is_null($session->invoice) ? "{$session->invoice->invoiceSeries->series}-{$session->invoice->number} / " . Carbon\Carbon::parse($session->invoice->date)->format('d.m.Y') : 'not invoiced' }} |
{{ $sessionService->service->name ?? '' }} | {{ "{$sessionService->price} x {$helperService->formatAsDecimal($sessionService->amount, 0)} {$sessionService->service->measurement_unit}" }} | {{ $helperService->formatAsDecimal($sessionService->total_price) }} |