@extends('layouts.master') @section('title') Branch Users - {{ $branch->branch_name }} @endsection @section('content')

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif Users - {{ $branch->branch_name }}

Back to Branches {{-- --}}
@if (count($branch->users) > 0)
@foreach ($branch->users as $key => $user) @endforeach
# User Name Email Phone Role Status Created At Actions
{{ $key + 1 }} {{ $user->name }} {{ $user->email }} {{ $user->phone ?? 'N/A' }} {{ $user->role->role_name ?? 'N/A' }} {{ ucfirst($user->status) }} {{ $user->created_at->format('M d, Y') }}
{{-- --}}
@else

No Users Found

No users have been assigned to this branch yet.

@endif
@endsection @section('scripts') @endsection