@extends('layouts.sentara') @section('content')

Data Ulasan

Periode aktif: {{ $periodeAktif->nama ?? 'Belum ada data' }} Lihat riwayat

@csrf
@csrf
๐Ÿ“„

Total Ulasan

{{ $totalUlasan }}

๐Ÿ“

Total Wisata

{{ $totalWisata }}

๐Ÿ“…

Terakhir Update

{{ $lastUpdate ? \Carbon\Carbon::parse($lastUpdate)->format('d M Y H:i') : '-' }}

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@if(request('periode_id')) @endif {{-- SEARCH --}}
@if($periodeId) @endif
@forelse($mentah as $i => $item) @empty @endforelse
No Nama Wisata Rating Ulasan Tanggal
{{ $mentah->firstItem() + $i }} {{ $item->wisata }} {{ str_repeat('โ˜…', round($item->rating)) }} {{ $item->rating }}
{{ $item->ulasan }}
@php try { $tanggalUlasan = $item->tanggal ? \Carbon\Carbon::parse($item->tanggal)->format('d M Y') : '-'; } catch (\Throwable $e) { $tanggalUlasan = $item->tanggal ?: '-'; } @endphp {{ $tanggalUlasan }}
Belum ada data
Menampilkan {{ $mentah->firstItem() ?? 0 }} - {{ $mentah->lastItem() ?? 0 }} dari {{ $mentah->total() }} data
@if ($mentah->onFirstPage()) ยซ @else ยซ @endif @for ($i = 1; $i <= $mentah->lastPage(); $i++) @if ($i == $mentah->currentPage()) {{ $i }} @elseif ($i <= 3 || $i > $mentah->lastPage() - 2 || abs($i - $mentah->currentPage()) <= 1) {{ $i }} @elseif ($i == 4 || $i == $mentah->lastPage() - 3) ... @endif @endfor @if ($mentah->hasMorePages()) ยป @else ยป @endif
@endsection