@extends('layout.app') @section('content')
Personnel ({{ $datas->count() }})   @if(!auth()->user()->company->isUsersMax()) Ajouter @endif
@foreach($dataRoles as $key => $dataRole) @php $i = 1; @endphp
@foreach($dataRole as $data) @if($i == 1 OR ($i - 1) % 3 == 0)
@endif

@if(!$data->hasRelatedRecords()) @endif
Profil : {{ $data->profil }}
@if($data->photo) @else {{-- person_pin--}} @endif
@if($data->is_doctor == true) Dr. @endif {{ $data->name }}
{{ $data->position }} {{ $data->role }} ยท {{ $data->specialty ? $data->specialty->name : '' }}
@if($i % 3 == 0 OR $loop->last)
@endif @php $i++; @endphp @endforeach
@endforeach
@endsection