@extends('layouts.master') @section('page-css') @endsection @section('main-content')

Edit Completed 1:1s

@if(auth()->user()->hasRole('admin') || auth()->user()->can('Can edit one to one (Tab under profile page) ') || (auth()->user()->can('Can edit MY DEPT 1:1s (under profile page)') && in_array($bothDepts['profile_user_dept'],$bothDepts['logged_user_dept'])))
@csrf

{{$oneStaffs->one_info->oneTitle}}

{{date('D dS M, Y',strtotime($oneStaffs->meetDate)).' '.date('h:ia',strtotime($oneStaffs->meetTime))}}
Meeting Agenda(s)
@if(is_object($oneStaffs->staff_notes) && count($oneStaffs->staff_notes)>0) @php($count=1) @foreach($oneStaffs->staff_notes as $note) @if($note->accessibility == 'private' && in_array(loggedin_userSession()->id,explode(',',$note->accessible_to))) @php($count++)
{{$note->created_at->diffForHumans()}}
@elseif($note->accessibility == 'public') @php($count++)
{{$note->created_at->diffForHumans()}}
@endif @endforeach @if($count ==1) @endif @else @endif
Upload files here
@endif

Recently completed 1:1s for {{user_details_by_id($oneStaffs->user_id)->name}}

@php($count=0) @if(is_object($recentOnes) && count($recentOnes)>0) @foreach($recentOnes as $recent) @if($oneStaffs->id != $recent->ones_staffs_id)
{{$recent->oneTitle}}

Completed On : {{date('dS M, Y H:ia',strtotime($recent->updated_at))}}

@php($count++) @endif @endforeach @if($count ==0)

No recent 1:1 found

@endif @else @endif
@endsection @section('page-js') @endsection