@extends('layouts.app') @section('title', 'Détails Dépense - GSI Mobilier') @section('page-title', 'Détails de la Dépense') @section('page-description', 'Informations détaillées de la dépense') @section('content')
Montant
{{ number_format($expense->amount, 0, ',', ' ') }} FCFA
Description
{{ $expense->description }}
Catégorie
@php $categoryIcons = [ 'Maintenance' => 'tools', 'Réparation' => 'wrench', 'Taxes' => 'receipt', 'Assurance' => 'shield-check', 'Électricité' => 'lightning', 'Eau' => 'droplet', 'Nettoyage' => 'spray', 'Sécurité' => 'shield-lock', 'Autre' => 'three-dots' ]; $icon = $categoryIcons[$expense->category] ?? 'tag'; @endphp {{ $expense->category }}Bâtiment
@if($expense->building){{ $expense->building->name }}
@else Général @endifLocataire
{{ $expense->tenant->name }}
{{ $expense->tenant?->building?->name ?? '' }} @if($unit) - {{ $unit }} @elseif($expense->tenant?->unit_number) - {{ $expense->tenant->unit_number }} @endif
@if($expense->tenant?->building?->address){{ $expense->tenant->building->address }}
@endifRemboursement
Déjà remboursé: {{ number_format($paid, 0, ',', ' ') }} FCFA
Restant: {{ number_format($remaining, 0, ',', ' ') }} FCFA
Date
{{ $expense->expense_date->format('d/m/Y') }}
Méthode de Paiement
@if($expense->payment_method){{ $expense->payment_method }}
@else Non spécifié @endifNotes
{{ $expense->notes }}
Montant Total
{{ number_format($expense->amount, 0, ',', ' ') }}
FCFA
Statut remboursement
{{ $remaining <= 0 ? 'Remboursé' : 'En cours' }}
Type
{{ $expense->category }}
Bâtiment
{{ $expense->building->name }}