@if (strpos($case->location->registered_company_name, 'External') === false)

Site

@if($case->location->head_office_location?->id) @endif
@isset($case->location->trading_name)
{{ $case->location->trading_name }} ( {{ $case->location->id }} )
@endisset @isset($case->location)
{{ $case->location->getFullAddressAttribute() }}
@endisset
@isset($case->location->location_tag)
@livewire('location-tags-manager', ['loc_id' => $case->location->id])
@endisset
@endif
{{-- if location involved in form --}} @if ($case->link_case_with_form && $case->link_case_with_form->get_form_involved_loc() != null) @php $loc_ids = $case->link_case_with_form->get_form_involved_loc(); @endphp @if (!empty($loc_ids)) @foreach ($loc_ids as $loc) @php $location = App\Models\Location::find($loc); @endphp @if ($location) @endif @endforeach @endif @endif {{-- if location involved from button --}} @php $inv_sites = $case->case_to_involvements->where('type','site'); @endphp @if ($inv_sites->isNotEmpty()) @foreach ($inv_sites as $each_site) @php $location = App\Models\Location::find($each_site->type_id); @endphp @if ($location) @endif @endforeach @endif