Files
apimacro/resources/views/ordini.blade.php
paoloar77 43547d1e20 aa
2024-08-13 09:35:01 +02:00

25 lines
931 B
PHP

@foreach($orders as $order)
@php
$product = $order->product;
$titolo = $product && $product->permalink
? "<a href='{$product->permalink}' target='_blank'><span style='font-weight: bold;'>{$product->name}</span></a>"
: "";
@endphp
{{ getvalstr("", $order->Codice) }}
{{ getvalstr("", $order->DataOra) }}
{{ getvalstr("", $titolo) }}
{{ getvalstr("Ordine", $order->IdInternet, true) }}
{{ getvalstr("Articolo", $order->CodArticoloGM, true) }}
{{ getvalstr("Prezzo", $order->PrezzoLordo) }}
{{ getvalstr("Quantità", $order->Qta) }}
@if($order->PercSconto)
{{ getvalstr("Sconto", $order->PercSconto) }}
@endif
@if($order->Descrizione)
{{ getvalstr("Descr", $order->Descrizione) }}
@endif
<a href="{{ $baseUrl }}apimacro/public/setordine/{{ $order->IdInternet }}/del/" target="_blank">ELIMINA!</a>
<br>
@endforeach