@extends('layouts.mobile.modern') @section('title', 'Kunjungan Saya') @section('header_left') @endsection @section('header_right') @endsection @push('mystyle') @endpush @section('content')
{{-- ===== FILTER (Same as Histori) ===== --}}
{{-- Filter Header --}}
Pilih Rentang Tanggal
{{-- Filter Inputs --}}
{{-- Timeline List --}}

Aktivitas Kunjungan

@if ($kunjungan->count() > 0) @foreach ($kunjungan as $index => $item) @php $isLeft = $index % 2 == 0; $photoUrl = null; if ($item->foto) { $checkPath = public_path('storage/uploads/kunjungan/' . $item->foto); if (file_exists($checkPath)) { $photoUrl = asset('storage/uploads/kunjungan/' . $item->foto); } } @endphp
{{-- Admin Actions - Cleaned Up --}}
@csrf @method('DELETE')
{{ $item->created_at->format('H:i') }}
{{ $item->tanggal_kunjungan->format('d M Y') }}
@if($photoUrl) Foto @else @endif
{{ $item->deskripsi }}
@if($item->lokasi) {{ $item->lokasi }} @else
No Location
@endif
@endforeach @else

Belum ada kunjungan

Tekan tombol + untuk menambah baru.

@endif
{{-- Pagination --}} @if ($kunjungan->hasPages())
{{ $kunjungan->appends(request()->query())->links() }}
@endif
{{-- FAB Button --}} {{-- Detail Modal Container --}}
@endsection @push('myscript') @endpush