@extends('layouts.app') @section('title', 'Dépense - Locataire') @section('page-title', 'Détail Dépense') @section('page-description', 'Informations de votre dépense') @section('content') @php $paid = (float) ($expense->reimbursement_payments_sum_amount ?? 0); $remaining = max(((float) $expense->amount) - $paid, 0); $pct = ($expense->amount ?? 0) > 0 ? min(round(($paid / (float) $expense->amount) * 100), 100) : 0; @endphp {{-- Hero --}}
Dépense
Détail et suivi du remboursement
Retour Imprimer PDF
{{-- Grid principal --}}
{{-- Colonne gauche : détails --}}
Dépense #{{ $expense->id }}
{{ $expense->expense_date?->format('d/m/Y') }}
Bâtiment
{{ $expense->building->name ?? '-' }}
Catégorie
{{ $expense->category ?? '-' }}
Description
{{ $expense->description ?? '-' }}
Montant
{{ number_format($expense->amount ?? 0, 0, ',', ' ') }} FCFA
Remboursé
{{ number_format($paid, 0, ',', ' ') }} FCFA
Restant
{{ number_format($remaining, 0, ',', ' ') }} FCFA
Statut
@if($remaining <= 0) Remboursée @else Reste à rembourser @endif
{{-- Colonne droite : progression --}}
Remboursement
Suivi du montant
@endsection