@include('layouts.header')
@php($curDept = "") @php($curRole = "") @foreach($currentUserRoles as $currentUserRole) @php($curDept = $curDept.@$currentUserRole->department->department.'/') @php($curRole = $curRole.@$currentUserRole->role->role.'/') @endforeach

{{@$currentUser->name}}

{{substr($curDept,0,-1)}}
{{substr($curRole,0,-1)}}
Employee ID : {{@($currentUser->employee_id)?$currentUser->employee_id:'N/A'}}
Department
Department Manager Action
Sales ---
Software ---
Cost Centre
@foreach($currentUserCostCentreItems as $index => $currentUserCostCentreItem) @endforeach
SNo Item Name Action
{{$index+1}} {{@$currentUserCostCentreItem->item}}
Assign Welcome Messages
@csrf
@php($assignedMessageIds = @$currentUser->assignedWelcomeMessages()->select('broadcast_message_id')->orderBy('created_at', 'asc')->get()->toArray()) @php($assignedMessageIds = array_column($assignedMessageIds, 'broadcast_message_id')) @error('messageIds') {{ $message }} @enderror @error('messageIds.*') {{ $message }} @enderror

Messages will be displayed in below order

@foreach($currentUserWelcomeMessages as $currentUserWelcomeMessage)

{{@$currentUserWelcomeMessage->broadcastMessage->title}}

{{@$currentUserWelcomeMessage->broadcastMessage->description}}
@endforeach
Assign Videos
@csrf
@php($assignedVideoIds = @$currentUser->assignedWelcomeVideos()->select('broadcast_video_id')->orderBy('created_at', 'asc')->get()->toArray()) @php($assignedVideoIds = array_column($assignedVideoIds, 'broadcast_video_id')) @error('videoIds') {{ $message }} @enderror @error('videoIds.*') {{ $message }} @enderror

Videos will be displayed in below order

@foreach($currentUserWelcomeVideos as $index => $currentUserWelcomeVideo)

{{@$currentUserWelcomeVideo->broadcastVideo->title}}

{{@$currentUserWelcomeVideo->broadcastVideo->description}}
@endforeach
Assign Files
@csrf
@php($assignedFileIds = @$currentUser->assignedWelcomeFiles()->select('broadcast_file_id')->orderBy('created_at', 'asc')->get()->toArray()) @php($assignedFileIds = array_column($assignedFileIds, 'broadcast_file_id')) @error('fileIds') {{ $message }} @enderror @error('fileIds.*') {{ $message }} @enderror

Files will be displayed in below order

@foreach($currentUserWelcomeFiles as $index => $currentUserWelcomeFile)

{{@$currentUserWelcomeFile->broadcastFile->title}}

{{@$currentUserWelcomeFile->broadcastFile->description}}
@endforeach
Deliverables
@foreach($currentUserDeliverables as $currentUserDeliverable) @endforeach
Title Start Date End Date Approved By Status Action
{{@$currentUserDeliverable->title}} {{@($currentUserDeliverable->start_date)?date('d M, Y', strtotime($currentUserDeliverable->start_date)):'N/A'}} {{@($currentUserDeliverable->end_date)?date('d M, Y', strtotime($currentUserDeliverable->end_date)):'N/A'}} {{@$currentUserDeliverable->approved_by}} {{@$currentUserDeliverable->status}}
Milestones
@foreach($currentUserMilestones as $currentUserMilestone) @endforeach
Title Start Date End Date Approved By Status Action
{{@$currentUserMilestone->title}} {{@($currentUserMilestone->start_date)?date('d M, Y', strtotime($currentUserMilestone->start_date)):'N/A'}} {{@($currentUserMilestone->end_date)?date('d M, Y', strtotime($currentUserMilestone->end_date)):'N/A'}} {{@$currentUserMilestone->approved_by}} {{@$currentUserMilestone->status}}
Assign Department and Role
Level list
@foreach($currentUserRoles as $currentUserRole) @endforeach
Department Role Level Reports To Action
{{@$currentUserRole->department->department}} {{@$currentUserRole->role->role}} {{@$currentUserRole->level->name}} {{@\App\User::find(@$currentUserRole->report_to)->name}}
Add Assign Roles
@csrf
@error('departmentId') {{ $message }} @enderror
@error('roleId') {{ $message }} @enderror
@error('levelId') {{ $message }} @enderror
@error('reportTo') {{ $message }} @enderror
@include('layouts.footer')