74 lines
3.4 KiB
PHP
74 lines
3.4 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Facture {{ $invoice->invoice_number }}</title>
|
|
<style>
|
|
body { font-family: 'Helvetica', 'Arial', sans-serif; color: #333; line-height: 1.5; }
|
|
.header { margin-bottom: 30px; border-bottom: 2px solid #5d8a66; padding-bottom: 10px; }
|
|
.company-info { float: left; width: 50%; }
|
|
.client-info { float: right; width: 40%; text-align: right; }
|
|
.clear { clear: both; }
|
|
.title { font-size: 24px; color: #5d8a66; margin-bottom: 20px; text-transform: uppercase; }
|
|
.details-table { width: 100%; border-collapse: collapse; margin-top: 30px; }
|
|
.details-table th { background-color: #5d8a66; color: white; padding: 10px; text-align: left; }
|
|
.details-table td { padding: 10px; border-bottom: 1px solid #eee; }
|
|
.totals { float: right; width: 30%; margin-top: 20px; }
|
|
.totals-row { display: block; text-align: right; padding: 5px 0; }
|
|
.totals-row.grand-total { font-weight: bold; border-top: 2px solid #5d8a66; margin-top: 10px; padding-top: 10px; color: #5d8a66; font-size: 18px; }
|
|
.footer { position: fixed; bottom: 0; width: 100%; text-align: center; font-size: 10px; color: #777; border-top: 1px solid #eee; padding-top: 10px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<div class="company-info">
|
|
<h1>THANASOFT</h1>
|
|
<p>Solutions de gestion funéraire</p>
|
|
</div>
|
|
<div class="client-info">
|
|
<h3>CLIENT</h3>
|
|
<p><strong>{{ $invoice->client->name }}</strong></p>
|
|
<p>{{ $invoice->client->billing_address_line1 }}</p>
|
|
<p>{{ $invoice->client->billing_postal_code }} {{ $invoice->client->billing_city }}</p>
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<div class="title">Facture : {{ $invoice->invoice_number }}</div>
|
|
<p>Date : {{ $invoice->invoice_date->format('d/m/Y') }}<br>
|
|
Échéance : {{ $invoice->due_date->format('d/m/Y') }}</p>
|
|
|
|
<table class="details-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Description</th>
|
|
<th style="text-align: right;">Quantité</th>
|
|
<th style="text-align: right;">Prix Unitaire</th>
|
|
<th style="text-align: right;">Total HT</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($invoice->lines as $line)
|
|
<tr>
|
|
<td>{{ $line->description }}</td>
|
|
<td style="text-align: right;">{{ $line->quantity }}</td>
|
|
<td style="text-align: right;">{{ number_format($line->unit_price, 2, ',', ' ') }} {{ $invoice->currency }}</td>
|
|
<td style="text-align: right;">{{ number_format($line->total_ht, 2, ',', ' ') }} {{ $invoice->currency }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="totals">
|
|
<div class="totals-row">Total HT : {{ number_format($invoice->total_ht, 2, ',', ' ') }} {{ $invoice->currency }}</div>
|
|
<div class="totals-row">TVA : {{ number_format($invoice->total_tva, 2, ',', ' ') }} {{ $invoice->currency }}</div>
|
|
<div class="totals-row grand-total">TOTAL TTC : {{ number_format($invoice->total_ttc, 2, ',', ' ') }} {{ $invoice->currency }}</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
Thanasoft - SIRET: XXXXXXXXXXXXXX - TVA: FRXXXXXXXXXXX<br>
|
|
Document généré le {{ now()->format('d/m/Y H:i') }}
|
|
</div>
|
|
</body>
|
|
</html>
|