@extends('layouts.main-layout') @section('title') Assign Accommodation to {{$user->UserName}} | Accommodations Management @endsection @section('content')

Assign Accommodations to {{ucwords($user->UserName)}}

@csrf
{{-- --}} @error('accommodations') {{$errors->first('accommodations')}} @endError
Assigned Accommodations
@forelse($userAccommodations as $i => $userAccommodation) @empty @endforelse
# UserName UserType Accommodation Name Actions
{{$i + $userAccommodations->firstItem()}} {{$user->UserName}} {{$user->userType->UserTypeName}} {{$userAccommodation->AccommodationName}}
@csrf @method('DELETE')
Nothing assigned yet!
{{$userAccommodations->appends(request()->query())->links('vendor.pagination.default')}}
@endsection @section('js') @endsection