42 lines
2.2 KiB
PHP
42 lines
2.2 KiB
PHP
@extends('layouts.app')
|
|
@section('title', $agent->display_name.' — Signatures CABM')
|
|
@section('content')
|
|
<div class="row" style="margin-bottom:16px">
|
|
<a href="{{ route('admin.agents.index') }}">← Agents</a>
|
|
<h1 style="margin:0 0 0 12px">{{ $agent->display_name }}</h1>
|
|
</div>
|
|
<div class="split">
|
|
<div class="card">
|
|
<h2>Annuaire (Entra)</h2>
|
|
<table class="list">
|
|
<tr><th>Adresse</th><td>{{ $agent->mail }}</td></tr>
|
|
<tr><th>Fonction</th><td>{{ $agent->job_title }}</td></tr>
|
|
<tr><th>Service</th><td>{{ $agent->department }}</td></tr>
|
|
<tr><th>Téléphone</th><td>{{ $agent->business_phone }}</td></tr>
|
|
<tr><th>Mobile</th><td>{{ $agent->mobile_phone }}</td></tr>
|
|
<tr><th>Groupes signature_*</th><td>{{ $agent->groups->pluck('display_name')->join(', ') ?: '—' }}</td></tr>
|
|
<tr><th>Template appliqué</th><td>
|
|
@if ($template)
|
|
<a href="{{ route('admin.templates.edit', $template) }}">{{ $template->name }}</a>
|
|
@else — aucun (pas de template par défaut publié) — @endif
|
|
</td></tr>
|
|
<tr><th>Bannière</th><td>
|
|
@if ($campaign)
|
|
<a href="{{ route('admin.campaigns.edit', $campaign) }}">{{ $campaign->name }}</a>
|
|
@if ($template && ! str_contains((string) $template->html_full, 'banniere'))
|
|
<span class="badge warn">non affichée : le template n'a pas de bannière</span>
|
|
@endif
|
|
@else — aucune campagne en cours pour cet agent — @endif
|
|
</td></tr>
|
|
<tr><th>Synchronisé le</th><td class="muted">{{ $agent->synced_at?->timezone('Europe/Paris')->format('d/m/Y H:i') }}</td></tr>
|
|
</table>
|
|
</div>
|
|
<div class="card">
|
|
<h2>Nouveau message</h2>
|
|
@include('partials.signature-frame', ['html' => $full['html'] ?? ''])
|
|
<h2 style="margin-top:16px">Réponse / transfert</h2>
|
|
@include('partials.signature-frame', ['html' => $reply['html'] ?? ''])
|
|
</div>
|
|
</div>
|
|
@endsection
|