@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
{{ Session::get('flash_message') }}
@endif
| # | 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
// 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