@extends('layouts.head_office_app') @section('title', 'Head office Profile') @section('content') @section('styles') {{-- @dd($user->selected_head_office->getOrganisationTree()) --}} @endsection
My Profile

Work Pattern
 
@php $days = [ 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday', ]; @endphp @csrf @foreach ($days as $day) @php $var = 'is_open_' . $day; $start = $day . '_start_time'; $end = $day . '_end_time'; @endphp @endforeach
Day From To
{{ ucfirst($day) }} {{ $head_office_timing->$start? strtolower($head_office_timing->convert_time($head_office_timing->$start)):"Off" }} {{$head_office_timing->$end? strtolower($head_office_timing->convert_time($head_office_timing->$end)) :"Off"}}
Leave
@if (isset($head_office_user_holidays) && count($head_office_user_holidays) > 0) @foreach ($head_office_user_holidays as $holiday) @endforeach
Away From Return On Total Days Type
{{ $holiday->away_from->format(config('app.dateFormat')) }} {{ $holiday->return_on->format(config('app.dateFormat')) }} {{ $holiday->total_days }} {{ $holiday->type }}
@else

You have no leave booked

@endif
Upcoming Holidays
@foreach ($bank_holidays as $divion) @php $date = $divion->date->format('d-m-Y'); @endphp @endforeach
Name Date
New Year's Day 01-Jan-2024 Working? Yes / No
{{ $divion->title }} {{ $divion->date->format(config('app.dateFormat')) }} Working? Yes / No
User Status
is_active == 1) class="form-check-input" name="user_status" onchange="updateActive(event)" id="user_active" />
do_not_disturb == 1) class="form-check-input" name="user_status_disturb" onchange="updateDisturb(event)" id="user_not_active" />
Work Status
work_status == 0) class="form-check-input" name="c1" value="1" onchange="updateStatus(0)" id="inTheOffice" />
work_status == 1) name="c1" value="2" onchange="updateStatus(1)" id="workingHome" />
work_status == 2) name="c1" value="3" onchange="updateStatus(2)" id="outSick" />
work_status == 3) name="c1" value="4" onchange="updateStatus(3)" id="onBreak" />
work_status == 4) name="c1" value="5" onchange="updateStatus(4)" id="outOffice" />
work_status == 5) name="c1" value="6" onchange="updateStatus(5)" id="outOffice1" />
Personal
{{-- --}}
@if ($user->selected_head_office_user->head_office_user_area->count() > 0)
Expertise
@endif
@if ($user->selected_head_office_user->head_office_user_area->count() > 0)
@foreach ($user->selected_head_office_user->head_office_user_area as $area) @endforeach
@endif
Contact Info You can hide your default email and phone number linked to your account. Add additional email addresses and phone numbers here for other users to see
@if (!$user->is_email_hidden) @else @endif
@foreach ($contacts->where('type', 1) as $k => $contact) @endforeach
  @if (!$user->is_phone_hidden) @else @endif
@foreach ($contacts->where('type', 0) as $key => $contact) @endforeach
About Me
@foreach ($l_u_s as $session) @endforeach
Device Location Last Usage
icon

@if ($session->platform == null) Unknown @elseif($session->platform == 'OS X') Mac @else {{ $session->platform }} @endif

{{ rtrim(preg_replace('/\d/', '', $session->browser), '.') }}

@if (!empty(trim($session->city))) {{ $session->city }}, @endif {{ $session->country }}

{{ $session->ip }}

{{ $session->updated_at->format('d M Y h:i A') }}

{{ $session->updated_at->diffForHumans() }}

@if ($session->user_session && session('user_session') === $session->user_session)
Current
@endif
{{-- @if ($session->user_session && session('user_session') !== $session->user_session) --}} Log out {{-- @endif --}}
{{--
--}}
0

Items Selected

@section('scripts') @if(Session::has('success')) @elseif(Session::has('error')) @endif @endsection @endsection