@inject('helperService', \App\Services\HelperService::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->filter(fn($session) => $session['session_timers']->isNotEmpty())->count() }}
{{ __('Total Duration') }}
{{ $helperService->computeTotalTime($totalDuration) }}
@foreach ($user->sessions as $session) @if ($session['session_timers']->isNotEmpty()) @foreach ($session['session_timers'] as $sessionTimer) @endforeach @endif @endforeach
{{ $session['location']['name'] ?? ($session['owner']['name'] ?? '') }} {{ !is_null($session['finished_at']) ? Carbon\Carbon::parse($session['finished_at'])->setTimezone($validated['timezone'])->format('d.m.Y H:i:s') : __('Not Finished') }} {{ $session['session_timers_total'] }}
# {{ __('Started at') }} {{ __('Finished at') }} {{ __('Duration') }}
{{ $loop->iteration }} {{ Carbon\Carbon::parse($sessionTimer->started_at)->setTimezone($validated['timezone'])->format('d.m.Y H:i:s') }} {{ Carbon\Carbon::parse($sessionTimer->finished_at)->setTimezone($validated['timezone'])->format('d.m.Y H:i:s') }} {{ $sessionTimer->duration }}
@endforeach