@component('mail::message' , ['title' => $title ])

Order # {{ $order->code }}

{{ $order->client->first_name }}

Order created:{{ date('d/m/y h:i a', strtotime($order->creation_date)) }}

@if ($order->orderProducts->count()) @foreach($order->orderProducts as $product) @endforeach
Items Quantity
{{ $product->products->name }} {{ $product->quantity }}
@endif

Total:${{ $order->total_price }}

Payment method:{{ $order->payment_type_id == 3 ? $order->bo_credit_card_type . "*" . substr ($order->bo_credit_card_number, -4) : $order->paymentType->name }}

@endcomponent