@inject('helperService', \App\Services\HelperService::class) @inject('userService', \App\Services\UserService::class) {{ $title }}
{{ $brandProfile->name }}
{{ $brandProfile->address }}
{{ $brandProfile->city }}
{{ $brandProfile->mobile1 }}
{{ $brandProfile->email1 }}
@foreach ($users as $user) @php $totalDuration = Carbon\CarbonInterval::seconds($user->sessions->sum('session_timers_seconds'))->cascade(); @endphp
{{ $user->first_name }} {{ $user->last_name }}
{{ $user->mobile ?? ($user->phone_fax ?? '') }}
{{ $user->email ?? '' }}
{{ $title }}
{{ __('Date Range') . ': ' . $dateRange }}
{{ __('Generated in') .': ' .now()->setTimezone($validated['timezone'])->format('d.m.Y H:i') }}
{{ __('Sessions Count') }}
{{ $user->sessions->count() }}
{{ __('Total Duration') }}
{{ $helperService->formatAsString((int) $totalDuration->totalHours) . ':' . $helperService->formatAsString($totalDuration->minutes) . ':' . $helperService->formatAsString($totalDuration->seconds) }}
@foreach ($user->sessions as $session) @foreach ($session['session_services'] as $sessionService) @php $measurementUnit = $sessionService['service']['measurement_unit'] ?? ''; @endphp @endforeach @endforeach
# {{ __('Date') }} {{ __('Location') }} {{ __('Duration') }} {{ __('Finished') }}
{{ $loop->iteration }} {{ Carbon\Carbon::parse($session['date'])->setTimezone($validated['timezone'])->format('d.m.Y') }}
{{ $session['owner']['name'] }}
{{ $session['location']['name'] ?? __('No location') }}
{{ $session['session_timers_total'] }} {{ !is_null($session['finished_at'])? Carbon\Carbon::parse($session['finished_at'])->setTimezone($validated['timezone'])->format('d.m.Y H:i:s'): __('Not Finished') }}
{{ $sessionService['service']['name'] ?? '' }} {{ "x {$helperService->formatAsDecimal($sessionService['amount'], 0)} {$measurementUnit}" }}
@endforeach