Files
dsi-commander/resources/views/emails/expiring_elements.blade.php
jeremy bayse 04fc56cd70 feat: dashboard amélioré, exports budgets, alertes expiration et correctifs
## Dashboard
- Refonte complète du tableau de bord avec widgets budgets, commandes, contrats
- Intégration des données d'exécution budgétaire en temps réel

## Exports & Rapports
- BudgetExecutionExport : export Excel de l'exécution budgétaire
- Template PDF budgets (budgets_pdf.blade.php)
- Routes d'export PDF et Excel

## Alertes & Notifications
- Commande CheckExpirations : détection des contrats/assets arrivant à échéance
- Mail ExpiringElementsMail avec template Blade
- Planification via routes/console.php

## Correctifs
- CommandePolicy et ContratPolicy : ajustements des règles d'autorisation
- ContratController : corrections mineures
- Commande model : ajustements relations/casts
- AuthenticatedLayout : refonte navigation avec icônes budgets
- Assets/Form.vue : corrections formulaire
- Seeder rôles/permissions mis à jour
- Dépendances composer mises à jour (barryvdh/laravel-dompdf, maatwebsite/excel)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 20:20:49 +02:00

52 lines
1.4 KiB
PHP

<x-mail::message>
# Alerte d'échéance
Bonjour,
Ceci est un message automatique pour vous informer que les éléments suivants arrivent à échéance dans les **30 prochains jours**.
@if($contrats->isNotEmpty())
## 📄 Contrats
| Titre | Fournisseur | Échéance |
| :--- | :--- | :--- |
@foreach($contrats as $contrat)
| {{ $contrat->titre }} | {{ $contrat->fournisseur?->nom ?? 'N/A' }} | {{ $contrat->date_echeance->format('d/m/Y') }} |
@endforeach
@endif
@if($licences->isNotEmpty())
## 🔑 Licences
| Nom | Fournisseur | Expiration |
| :--- | :--- | :--- |
@foreach($licences as $licence)
| {{ $licence->nom }} | {{ $licence->fournisseur?->nom ?? 'N/A' }} | {{ $licence->date_expiration->format('d/m/Y') }} |
@endforeach
@endif
@if($assets->isNotEmpty())
## 💻 Matériels (Garantie)
| Nom | Modèle | Fin Garantie |
| :--- | :--- | :--- |
@foreach($assets as $asset)
| {{ $asset->nom }} | {{ $asset->modele }} | {{ $asset->date_fin_garantie->format('d/m/Y') }} |
@endforeach
@endif
@if($domaines->isNotEmpty())
## 🌐 Domaines
| Nom | Prestataire | Échéance |
| :--- | :--- | :--- |
@foreach($domaines as $domaine)
| {{ $domaine->nom }} | {{ $domaine->prestataire ?? 'N/A' }} | {{ $domaine->date_echeance->format('d/m/Y') }} |
@endforeach
@endif
<x-mail::button :url="config('app.url')">
Accéder au tableau de bord
</x-mail::button>
<br>
{{ config('app.name') }}
</x-mail::message>