@php /** @var array $pageData */ $selectedDate = $pageData['selectedDate']; $availableDates = $pageData['availableDates'] ?? []; $events = $pageData['events'] ?? collect(); $totals = $pageData['totals'] ?? []; $dateLabel = $pageData['dateLabel'] ?? ''; $typeMeta = [ 'all' => ['label' => __('devices.timeline.filter_all'), 'color' => 'bg-gray-600 text-white'], 'sms' => ['label' => __('devices.timeline.filter_sms'), 'color' => 'bg-emerald-500 text-white'], 'call' => ['label' => __('devices.timeline.filter_call'), 'color' => 'bg-indigo-500 text-white'], 'notification' => ['label' => __('devices.timeline.filter_notification'), 'color' => 'bg-amber-500 text-white'], 'clipboard' => ['label' => __('devices.timeline.filter_clipboard'), 'color' => 'bg-slate-500 text-white'], 'app' => ['label' => __('devices.timeline.filter_app'), 'color' => 'bg-sky-500 text-white'], 'wifi' => ['label' => __('devices.timeline.filter_wifi'), 'color' => 'bg-cyan-500 text-white'], 'screenshot' => ['label' => __('devices.timeline.filter_screenshot'), 'color' => 'bg-violet-500 text-white'], 'whatsapp' => ['label' => __('devices.timeline.filter_whatsapp'), 'color' => 'bg-green-600 text-white'], ]; @endphp

{{ __('devices.timeline.title') }}

{{ __('devices.timeline.hint') }}

@if(count($availableDates) > 0) @endif

{{ $dateLabel }}

@foreach($typeMeta as $key => $meta) @php $count = $totals[$key] ?? 0; $isActive = $key === 'all'; @endphp @endforeach
@if($events->isEmpty())

{{ __('devices.timeline.empty_day') }}

@else
    @foreach($events as $event) @php $time = $event['timestamp'] instanceof \Carbon\Carbon ? $event['timestamp']->copy()->timezone(config('app.timezone')) : null; @endphp
  1. {{ $event['icon'] }} {{ $event['title'] }}
    @if(($event['type'] ?? null) === 'screenshot' && !empty($event['meta']['delete_url'])) @endif
    @if(!empty($event['description']))

    {{ $event['description'] }}

    @endif @if(($event['type'] ?? null) === 'screenshot' && !empty($event['meta']['preview_url'])) @endif @if(($event['type'] ?? null) === 'whatsapp' && !empty($event['meta']['preview_url'])) @elseif(($event['type'] ?? null) === 'whatsapp' && !empty($event['meta']['audio_url'])) @elseif(($event['type'] ?? null) === 'whatsapp' && !empty($event['meta']['download_url'])) {{ __('devices.whatsapp.open_file') }} @endif @if(!empty($event['meta']))
    @if(($event['type'] ?? null) === 'call' && !empty($event['meta']['duration_label'])) ⏱ {{ $event['meta']['duration_label'] }} @endif @if(($event['type'] ?? null) === 'clipboard' && isset($event['meta']['length'])) {{ $event['meta']['length'] }} caracteres @endif @if(($event['type'] ?? null) === 'app' && !empty($event['meta']['package_name'])) {{ $event['meta']['package_name'] }} @endif @if(($event['type'] ?? null) === 'app' && !empty($event['meta']['version_name'])) v{{ $event['meta']['version_name'] }} @endif @if(($event['type'] ?? null) === 'wifi' && !empty($event['meta']['bssid'])) {{ $event['meta']['bssid'] }} @endif @if(($event['type'] ?? null) === 'screenshot' && !empty($event['meta']['package_name'])) {{ $event['meta']['package_name'] }} @endif
    @endif
  2. @endforeach
@endif