@extends('layouts.head_office_app') @section('title', 'Head office Settings') @section('sub-header') {{--
Details Timeline
--}} @endsection @section('content')
@php $location = $ho_location->location; @endphp @include('layouts.error')
@csrf {{-- @dd($ho_location->location_logo); --}} {{-- {{ dd($ho_location->org_settings()) }} --}}
{{$location->trading_name}}

{{isset($location->location_code) ? $location->location_code : ''}}

@php $colors = ['bg-primary', 'bg-secondary', 'bg-success', 'bg-danger', 'bg-warning', 'bg-info', 'bg-dark']; $assignedUsers = $ho_location->assigned_user(); @endphp
@if (!empty($assignedUsers)) @foreach ($assignedUsers as $index => $assignedUser) @php $userName = $assignedUser->user->name; $initials = strtoupper(substr($userName, 0, 2)); $bgColor = $colors[$index % count($colors)]; @endphp
{{ $initials }}
@endforeach @else

Location has not been assigned to any user

@endif
{{-- @php $ho_name = DB::table('head_offices') ->where('id', $ho_location->head_office_id) ->value('company_name'); $ho_name = Str::replace(' ', '_', $ho_name); $loc_username = $location->username; $loc_username = rtrim($loc_username, '.'); if (!Str::contains($loc_username, '.' . $ho_name)) { $loc_username .= '.' . $ho_name; } @endphp --}}
{{--

Tags

--}}
@livewire('location-tags-manager', ['loc_id' => $location->id])

Details

Browse
{{-- @dd($ho_location->location_logo) --}}
@foreach($ho_location->location_logo as $logo)
Location Image
@endforeach

General

Username:

Company Name:

{{$location->registered_company_name}}

Registration no:

Trading Name

Site ID:

ODS/Contractor code:

Details

Address:

{{$location->full_address}}

Telephone: 2FA

@if (isset($phones) && !empty($phones)) @foreach ($phones as $index => $phone)
Make Primary
@endforeach @endif
{{--

Email: @if($location->otp?->is_totp_enabled) 2FA@endif

--}}

Email: @if($location->otp?->isEnabled) MFA @endif

@if (isset($emails) && count($emails) != 0) @foreach ($emails as $index => $email) @endforeach @endif

Type

Type:

@foreach ($location_types as $location_type) @endforeach

Sub Type:

@foreach ($pharm_types as $pharm_type) @endforeach

Regulatory Body:

@foreach ($bodies as $body) @endforeach

Group

@if (count($ho_location->groups))
groups) > 1) style="display:flex;align-items:center;flex-wrap:wrap;width:144px;" @endif class=""> @foreach ($ho_location->groups as $assignment)

{{ $assignment->group->group }}

@endforeach
@endif

tab2
@foreach ($comments as $key => $comment) @include('head_office.contacts.view_comments', compact('comment')) @endforeach
@include('head_office.location_comments', [ 'comment' => null, 'parent' => null, 'remove_backdrop' => true, ])
Coming Soon
Coming Soon
Coming Soon
Coming Soon
Coming Soon
Coming Soon
{{-- modals started --}} @section('scripts') @endsection @endsection