@extends('admin.layout') @section('title', 'Kelola Hotel') @section('page-title', 'Kelola Hotel') @section('content')
Daftar Hotel
@if($hotels->count() > 0)
@foreach($hotels as $hotel) @endforeach
ID Nama Hotel Lokasi Rating Jumlah Kamar Status Aksi
#{{ $hotel->id }}
@if($hotel->image_url) {{ $hotel->name }} @else
@endif
{{ $hotel->name }} @if($hotel->description)
{{ Str::limit($hotel->description, 50) }} @endif
{{ $hotel->city }}, {{ $hotel->country }} @if($hotel->address)
{{ Str::limit($hotel->address, 30) }} @endif
@if($hotel->rating)
@for($i = 1; $i <= 5; $i++) @if($i <= $hotel->rating) @else @endif @endfor {{ $hotel->rating }}
@else Belum ada rating @endif
{{ $hotel->rooms_count }} kamar @if($hotel->is_active) Aktif @else Tidak Aktif @endif
@include('admin.custom-pagination', ['paginator' => $hotels])
@else
Belum ada hotel

Klik tombol "Tambah Hotel" untuk menambah hotel pertama

@endif
@endsection @section('scripts') @endsection