@extends("admin.admin_app") @section("content")

Hotel Lists

@if(isset($search) && !empty($search)) Search: "{{ $search }}" @endif
@php $routeCol = $col ?? null; $routeSearchById = $searchById ?? null; $query = request()->all(); $query['export'] = 'excel'; $queryString = http_build_query($query); @endphp Download Excel Add Hotel
@if(Session::has('flash_message'))
{{ Session::get('flash_message') }}
@endif
Reset
{{-- Search Input (takes remaining width) --}}
{{-- Pagination Dropdown (right side) --}}
@foreach($hotels as $i => $hotel) @endforeach
# Hotel Name Star Category City State Address Chain Property Remarks Status Manage Venues Actions
{{ ($page-1)*$perPage + $i + 1 }} {{ $hotel->hotel_name }} {{ $hotel->starcategory }} Star {{ $hotel->city_name }} {{ $hotel->state_name }} {{ $hotel->hotel_address }} {{ $hotel->chain_property }} {{ $hotel->remarks }} Manage Venues
@php $totalPages = ceil($total / $perPage); $startPage = max($page - 2, 1); $endPage = min($page + 2, $totalPages); @endphp @if ($totalPages > 1)
    @php // Build base URL depending on whether $col and $searchById exist $baseUrl = isset($col) && isset($searchById) ? url("admin/hotel-list/$col/$searchById") : url('admin/hotel-list'); @endphp {{-- Previous Button --}}
  • Previous
  • {{-- First Page --}} @if($startPage > 1)
  • 1
  • @if($startPage > 2)
  • @endif @endif {{-- Middle Pages --}} @for ($i = $startPage; $i <= $endPage; $i++)
  • {{ $i }}
  • @endfor {{-- Last Page --}} @if($endPage < $totalPages) @if($endPage < $totalPages - 1)
  • @endif
  • {{ $totalPages }}
  • @endif {{-- Next Button --}}
  • Next
@endif
@endsection