@foreach($hotel_reservations as $key=> $row)
<tr>
    <th scope="row">
        <div class="custom-control custom-checkbox">
            <input type="checkbox" class="custom-control-input selectOne deleteCheck single_select" id="customCheck{{$row->id}}" value="{{$row->id}}" name="id[]">
            <label class="custom-control-label" for="customCheck{{$row->id}}"></label>
        </div>
    </th>
    <td>{{ $row->city_name }}</td>
    <td>{{ $row->hotel_name }}</td>
    <td>{{ $row->user_name ?? $row->name }}</td>
    <td>{{ $row->user_email ?? $row->email }}</td>
    <td>{{ $roomTypes[$row->room_type] }}</td>
    <td>{{ $row->days_count }}</td>
    <td>{{ $row->person_count }}</td>
    <td colspan="2">{{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }}</td>
    <td>
        @if($row->deleted_at)
            <a href="{{ route ('hotel_reservations.restore', $row->id) }}" data-method="put" class="icon rowAction" title="{{ __('dashboard.restore') }}"><img src="{{ asset('assets/admin/images/icons/restore.svg') }}" alt="{{ __('dashboard.restore') }}"></a>

            <a href="{{ route ('hotel_reservations.destroy', $row->id) }}" data-method="delete" class="icon rowAction" title="{{ __('dashboard.delete') }}"><img src="{{ asset('assets/admin/images/icons/close.svg') }}" alt="{{ __('dashboard.delete') }}"></a>
        @else
            <a href="{{ route ('hotel_reservations.edit', $row->id) }}" class="icon" title="{{ __('dashboard.edit') }}"><img src="{{ asset('assets/admin/images/icons/draw.svg') }}" alt="{{ __('dashboard.edit') }}"></a>

            <a href="{{ route ('hotel_reservations.destroy', $row->id) }}" data-method="delete" class="icon rowAction" title="{{ __('dashboard.trash') }}"><img src="{{ asset('assets/admin/images/icons/del.svg') }}" alt="{{ __('dashboard.trash') }}"></a>
        @endif
    </td>
</tr>
@endforeach

@if( count( $hotel_reservations ) )
<tr> <td></td><td> {{ $hotel_reservations->links() }} </td> </tr>
@endif

