@extends('layouts.master')
@section('content')
Hello unza
@if (Auth::check())
User Permissions:
@foreach (Auth::user()->permissions as $permission)
- {{ $permission->name }}
@endforeach
@endif
{{-- Display the current user's ID --}}
{{ auth()->user()->id }}
{{-- Display the current user's name --}}
{{ auth()->user()->name }}
{{-- Display the current user's permissions (assuming you have a 'permissions' relationship set up) --}}
@foreach(auth()->user()->permissions as $permission)
{{ $permission->name }}
@endforeach
@canany(['permission1', 'permission2'])
You have the required permissions.
{{-- Display the Git commit hash --}}
@if (isset($gitCommitHash))
Testing tracking Version is:
{{ $gitCommitHash }}
@endif
@else
You do not have the required permissions.
@endcanany
@endsection