@forelse ($orders as $order) {{ $order->created_at->format('d-m-Y') }} {{ $order->id }} {{ $order->name }} € {{ $order->order_products->sum(function($product) { return $product->quantity * $product->total_spending; }) }} @php $sum=$order->order_products->sum(function($product) { return $product->quantity * $product->special_price; }) @endphp € {{ $sum ? $sum : 'N/A' }} @if(request()->url() == route('superadmin.orders.index')) {{$order->user->code}} {{$order->shop->code ? $order->shop->name .' cod.'. $order->shop->code : $order->shop->name }} @endif

{{$order->order_products->sum('eurobonus_gained') }}

-{{ $order->order_products->sum('eurobonus_spent') }}

@endcomponent @endif @endif @endforeach
@foreach ($order->order_products as $product)

Nome Prodotto

{{ $product->product_name }}
@endforeach
@foreach($order->order_products as $product)

TRATTAMENTO

{{ $product->treatment }}

COLORAZIONE

{{ $product->coloration }}

ARTICOLO ORDINATO

{{ $product->type }}

CANALE

{{ $product->channel ?? 'N.D.' }}
@include ('superadmin.partials.lens-table-data', [ 'title' => 'LENTE DX', 'lens' => $product->right_lens ])
@include ('superadmin.partials.lens-table-data', [ 'title' => 'LENTE SX', 'lens' => $product->left_lens ])

NOTE

{{ $product->note ?? 'N/A' }}
@if ($product->prc_module || $product->ist_module)
@if ($product->prc_module)
@component('components.superadmin.lens-module', [ 'title' => 'Modulo PRC', 'module' => $product->prc_module ]) @endcomponent
@elseif ($product->ist_module)
@component('components.superadmin.lens-module', [ 'title' => 'Modulo IST', 'module' => $product->ist_module ])
Angolo pantoscopico
{{ $product->ist_module->pantoscopic_angle }}
Distanza apice corneale lente
{{ $product->ist_module->lens_corneal_distance }}
Angolo avvolgimento
{{ $product->ist_module->wrap_angle }}
@empty No data found for displaying @endforelse