@extends('layouts.admin') @section('title', 'Agentes - ' . $agency->name) @section('content') @php $isAgencyAdmin = auth()->user()->hasRole('agency_admin'); $isRootOrDev = auth()->user()->hasRole(['root', 'developer']); $canManage = $isRootOrDev || $isAgencyAdmin; @endphp
@if($agent->position) {{ $agent->position }} @endif
@if($agent->email) {{ $agent->email }} @endif
@if($agent->phone) {{ $agent->phone }} @endif
@if($agent->has_license) Licencia: {{ $agent->license_number }} @endifNo hay agentes registrados aún.
@if($canManage) Crear primer agente @endif