@extends('manage.layout') @section('content')

User: {{ $user->name }}


Core User Details

@csrf

User Permissions

{{-- for loop, and make sure that only if the user has the DELETE_PERMISSION that they can delete it and if they have the UPDATE_PERMISSION that they can update it--}}
@foreach(auth()->user()->permissions as $permission) @endforeach @csrf
Permission Actions
{{ $permission->permission_name }}
@csrf @method('DELETE')

Cinema Assignments

@foreach(auth()->user()->cinemas() as $cinema) @endforeach @if ($user->hasPermission('UPDATE_USER')) @csrf @endif
Assignment Actions
{{ $cinema->cinema_name }} @if($user->hasPermission('DELETE_CINEMA_ASSIGNMENT')) Delete @endif
@endsection