@foreach ($order_ids as $order_id) @php $order = App\Models\Order::find($order_id); $billingdetails = App\Models\Billingdetails::where('order_id', $order->order_id)->first(); $orderproducts = App\Models\OrderProduct::where('order_id', $order->order_id)->get(); @endphp
Logo

From:

{{ $setting->first()->name }}
{{ $setting->first()->number_one }}
{{ $setting->first()->address }}

To:

{{ $billingdetails->name }}
{{ $billingdetails->mobile }}
{{ $billingdetails->address }}

@foreach ($orderproducts as $sl=>$orderpro) @endforeach
SL# Product(s) Description Qty Price
{{ $sl+1 }} {{ $orderpro->rel_to_pro->name }} @if ($order->landing == 1) @if ($order->color) Color:{{ $order->color }}, @endif @if ($order->size) Size:{{ $order->size }}, @endif @else @if ($orderpro->rel_to_attribute->weight) Package:{{ $orderpro->rel_to_attribute->weight }}, @else Color:{{ $orderpro->rel_to_attribute->color_id }} , Size:{{ $orderpro->rel_to_attribute->size_id }}, @endif @endif {{ $orderpro->quantity }} {{ $orderpro->rel_to_attribute->sell_price ?? $orderpro->rel_to_attribute->price }}Tk
@endforeach
Print {{-- --}}