@extends('mail.master') @section('content')

{{ $marketplaceName }} - Encomenda pronta para recolha

Destino:
@foreach($destination as $destinationLine)

{{ $destinationLine }}

@endforeach
Peso Total: {{ $totalWeight }}

Comprador: @if($buyerName)

{{ $buyerName }}

@endif @if($buyerEmail)

Email: {{ $buyerEmail }}

@endif @if($buyerPhone)

Telefone: {{ $buyerPhone }}

@endif
@foreach($order->fulfillments as $fulfillment)

Loja: {{ $fulfillment->store->commercial_name }}

Contacto: {{ $fulfillment->store->mobile_phone_number ?? $fulfillment->store->email }}

Dimensões: {{ $fulfillment->order_dimension_length }} x {{ $fulfillment->order_dimension_width }} x {{ $fulfillment->order_dimension_height }} cm

Peso: {{ number_format($fulfillment->physicalOrderItems->sum(fn ($item) => $item->quantity * ($item->product_snapshot['weight'] ?? 0)), 2) }} kg

@include('mail.partials.products-list', ['orderItems' => $fulfillment->physicalOrderItems, 'showPriceAndLink' => false]) @endforeach
@endsection