refactor(sales): reuse admin labels in exports
This commit is contained in:
@@ -47,11 +47,7 @@
|
||||
<td>{{ $sale->created_at?->copy()->timezone($timeZone)->format('d/m/Y H:i') ?? '-' }}</td>
|
||||
<td>{{ $sale->nombre_apellido ?: 'Sin nombre' }}</td>
|
||||
<td class="center">{{ (int) ($sale->quantity ?? 0) }}</td>
|
||||
<td>{{ match ($sale->status) {
|
||||
'paid' => 'Confirmado',
|
||||
'created', 'pending_payment' => 'Esperando pago',
|
||||
default => 'Anulado',
|
||||
} }}</td>
|
||||
<td>{{ \App\Domains\Purchase\Models\Purchase::adminStatusNameFor($sale->status) ?? $sale->status }}</td>
|
||||
<td class="number">${{ number_format((float) $sale->total, 2, ',', '.') }}</td>
|
||||
<td class="center">{{ (int) ($sale->tickets_count ?? 0) }}</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user