@extends('layouts.app') @section('title', 'Locations materiel') @section('content')

Locations materiel

Suivi des locations en cours et terminees

Retour dashboard
Total
{{ (int) ($stats['total'] ?? 0) }}
Actives
{{ (int) ($stats['active'] ?? 0) }}
Terminees
{{ (int) ($stats['completed'] ?? 0) }}
En retard
{{ (int) ($stats['overdue'] ?? 0) }}
CA total
{{ number_format((float) ($stats['total_revenue'] ?? 0), 2) }}€
Paiements attente
{{ number_format((float) ($stats['pending_payment'] ?? 0), 2) }}€
Reinitialiser
@forelse($rentals as $rental) @empty @endforelse
Location Equipement Client Periode Statut Montant Action
{{ $rental->rental_number ?: ('LOC-' . $rental->id) }} {{ optional($rental->equipment)->name ?? 'Equipement supprime' }} {{ optional(optional($rental->client)->user)->name ?? 'Client inconnu' }} {{ optional($rental->start_date)->format('d/m/Y') ?: '-' }} - {{ optional($rental->end_date)->format('d/m/Y') ?: '-' }}
{{ $rental->formatted_status }}
{{ $rental->formatted_payment_status }}
{{ number_format((float) ($rental->final_amount ?? $rental->total_amount ?? 0), 2) }}€ Ouvrir
Aucune location trouvee.
{{ $rentals->links() }}
@endsection