@extends('layouts.app') @section('title', 'Device Sync') @section('content')
@if (auth()->user()->hasAction('device_sync.manage'))
@csrf

Request history sync from devices

Select devices, then open the mobile app and tap Sync Previous Messages.

@foreach ($devices as $device) @endforeach
@endif
@forelse ($messages as $message) @php $canView = auth()->user()->canViewMessageDetails($message); @endphp $canView]) @if ($canView) onclick="window.location='{{ route('messages.show', $message) }}'" @endif> @empty @endforelse
Time Device Department Sender Message Type
{{ $message->received_at->format('M d, H:i') }} {{ $message->device->device_name }} {{ $message->device->department?->name ?? '—' }} {{ $message->sender }} {{ Str::limit($message->message, 80) }} @php $typeClass = match ($message->message_type) { 'payment' => 'badge-success', 'otp' => 'badge-warning', default => 'badge-neutral', }; @endphp {{ $message->message_type }}
No synced messages yet. Request a history sync from a device above.
@if ($messages->hasPages())
{{ $messages->links() }}
@endif
@endsection