@extends('layouts.app') @section('content')
| Article | Qté | Total | Acompte | Reste | |
|---|---|---|---|---|---|
|
@php($p = $item->purchasable)
@if($p instanceof \App\Models\Booking)
Réservation #{{ $p->booking_number ?? $p->id }}
@elseif($p instanceof \App\Models\EquipmentRentalRequest)
Location matériel #{{ $p->id }}
@elseif($p instanceof \App\Models\UrgentSale)
{{ $p->title ?? ('Produit #' . $p->id) }}
@else
Article #{{ $item->id }}
@endif
{{ class_basename($item->purchasable_type) }}
|
@if($item->purchasable instanceof \App\Models\UrgentSale) @else {{ $item->quantity }} @endif | {{ number_format($item->line_total, 2) }} € | {{ number_format($item->line_deposit, 2) }} € | @php($remaining = max(0, (float) $item->line_total - (float) $item->line_deposit)){{ number_format($remaining, 2) }} € |