@extends('layouts.front') @section('content')
@include('includes.bread')
@if ($entity->type != 'presidency_of_the_country')
@if ($entity->logo) @if ($entity->logo == '1511969365.png' || $entity->logo == '1581499938.png') @elseif($entity->logo == 'afriqueorganismes_1503049577.png') @else @endif {{-- --}} @endif

{{ $entity->libelle }}

@if ($entity->drapeau_droite) @endif
{{--

{{ $entity->libelle }}

--}}
@else
@if ($entity->logo) {{-- --}} @endif

{{ $entity->libelle }}

@endif @if (!isset($dataByClefs['part']) || $entity->type != $dataByClefs['part'])
@php $hasContent = false; @endphp @foreach ($cols as $col) @php $colName = __($col->pivot->libelle); $colValue = App\Helpers\Helper::getAttrs_front($col, $colName, $entity); @endphp @if ( $colValue && $colName != 'Drapeau droit' && $colName != 'Présentation Générale' && $colName != 'Administration' && $colName != 'Description' && $colName != 'cglu') @php $hasContent = true; @endphp @break @endif @endforeach @if ($hasContent)
@php $count = 0 @endphp @foreach ($cols as $col) @php $colName = __($col->pivot->libelle); $colValue = App\Helpers\Helper::getAttrs_front( $col, $colName, $entity, ); @endphp @if ( $colValue && $colName != 'Drapeau droit' && $colName != 'Présentation Générale' && $colName != 'Administration' && $colName != 'File' && $colName != 'Missions' && $colName != 'cglu') @php $count++ @endphp @if ($count == 2) @php $count = 0 @endphp @endif @endif @endforeach
@if (strlen($colValue) > 300) {!! substr($colValue, 0, 300) !!} Voir plus @else {!! $colValue !!} {{-- @php echo file_get_contents('uploads/multiple/trombinos/tabler/Standard.svg'); @endphp --}} @endif
@endif
@else
@php echo @file_get_contents('uploads/multiple/trombinos/country_map/' . $dataByClefs['code_country'] . '.svg'); @endphp
@php echo @file_get_contents('uploads/multiple/trombinos/region_map/' . $entity->id . '.svg'); @endphp
@if ($entity->presentation_generale) @endif @if ($entity->presentation) @endif @if ($entity->superficie && $entity->superficie != ' ') @endif @if ($entity->densite) @endif @if ($entity->population) @endif @if ($entity->chemin_de_fer) @elseif ($entity->administration) @endif

Présentation Générale : {{ $entity->presentation_generale }}

Présentation : {{ $entity->presentation }}

Superficie : {{ $entity->superficie }}

Densité : {{ $entity->densite }}

Population : {{ $entity->population }}

Chemin de Fer : {{ $entity->chemin_de_fer }}

Administration : {{ $entity->administration }}

@if($entity->id == 10540864 ) ANNUAIRE FEC 2023 @endif
@endif @if (isset($entite[0]['persons'])) @php $i = 0; @endphp @foreach ($entite[0]['persons'] as $index => $person) @if ($index === 0)
@if ($person['portrait']) Generic placeholder image @else @endif
{{ $person['prenom'] }} {{ $person['nom'] }} {{-- ({{ $person['fonctionnaire_id'] }}) --}}

{{ html_entity_decode($person['fonction']) }}

{{-- {{ $person['fonctionnaire_id'] }} --}}
@if ($person['biographie'])

Biographie

{{ Str::substr($person['biographie'], 0, 160) }}...

@endif

@if ($person['biographie']) @else @endif @if ($person['mail'] || $person['fax'] || $person['phone_work']) @else @endif

{{ $person['biographie'] }}
    @if ($person['phone_work'])
  • Téléphone : {{ $person['phone_work'] }}
  • @endif @if ($person['fax'])
  • Fax : {{ $person['fax'] }}
  • @endif @if ($person['mail'])
  • E-mail : {{ $person['mail'] }}
  • @endif
@if ($person['fonctionnaire_id'] != 46439)
Fonctions:
{{-- {{ $dataByClefs['forme_etat'] }} --}}
  • @php @endphp
    {{ html_entity_decode($person['fonction']) }} ({{ $entity->libelle }})
  • @if (isset($entite[0]['entites'][0])) @foreach ($entite[0]['entites'][$i] as $entity_in) @if ($entity_in['libelle'] !== $entity->libelle)
  • {{ $entity_in['fonction'] }} ({{ $entity_in['libelle'] }})
  • @endif @endforeach @endif
@endif
@else
@if ($person['portrait']) Generic placeholder image @else @endif
{{ $person['prenom'] }} {{ $person['nom'] }} {{-- ({{ $person['fonctionnaire_id'] }}) --}}

{{ html_entity_decode($person['fonction']) }}

@if ($person['biographie'])

Biographie

{{ Str::substr($person['biographie'], 0, 160) }}...

@endif

@if ($person['biographie']) @else @endif @if ($person['mail'] || $person['fax'] || $person['phone_work']) @else @endif

{{ $person['biographie'] }}
    @if ($person['mail'])
  • E-mail : {{ $person['mail'] }}
  • @endif @if ($person['fax'])
  • Fax : {{ $person['fax'] }}
  • @endif @if ($person['phone_work'])
  • Téléphone : {{ $person['phone_work'] }}
  • @endif
  • @php @endphp
    {{ html_entity_decode($person['fonction']) }} ({{ $entity->libelle }})
  • @if (isset($entite[0]['entites'][0])) @foreach ($entite[0]['entites'][$i] as $entity_in) @if ($entity_in['libelle'] !== $entity->libelle)
  • {{ $entity_in['fonction'] }} ({{ $entity_in['libelle'] }})
  • @endif @endforeach @endif
@endif @php $i++; @endphp @endforeach @endif
@if (isset($childs) && $entity->type != 'presidency_of_the_country' && $entity->type != 'bank' && $entity->type != 'association') @foreach ($childs as $child) @php $entityChild = $child->entity; @endphp @if ($entityChild) @elseif($child->symlink) @php try { $category = \App\Models\Category::findOrFail($child->symlink); } catch (\Illuminate\Database\Eloquent\ModelNotFoundException $e) { continue; } @endphp @if ($category) @endif @endif @endforeach @endif @if ($childs->count() == 18)
@endif
@endsection