{!! Form::select('customer_id', ['' => 'Please Select']+$customer, null, ['id' => 'customer_id', 'class' => 'form-control', 'required']) !!} {{ $errors->first('customer_id') }}
{!! Form::text('customer_first_name', $order->orderShipping->shipping_first_name ??'', ['class' => 'form-control']) !!} {{ $errors->first('customer_first_name') }}
{!! Form::text('customer_last_name', $order->orderShipping->shipping_last_name ?? '', ['class' => 'form-control']) !!} {{ $errors->first('customer_last_name') }}
{!! Form::text('order_phone', $order->orderShipping->shipping_phone ?? '', ['class' => 'form-control']) !!} {{ $errors->first('order_phone') }}
{!! Form::email('order_email', $order->orderShipping->shipping_email ?? '', ['class' => 'form-control', 'placeholder' => 'eg: foo@bar.com', 'required']) !!} {{ $errors->first('order_email') }}
{{ $errors->first('delivery_id') }}
{!! Form::text('order_address', $order->orderShipping->shipping_address, ['class' => 'form-control', 'required']) !!} {{ $errors->first('order_address') }}
{{ $errors->first('order_note') }}
{!! Form::date('order_date', $order->created_at, ['class' => 'form-control', 'required']) !!} {{ $errors->first('order_date') }}
{{ $errors->first('order_status') }}
@foreach($order->orderProducts as $item) @endforeach
Product Option Qty Price Discount Amount
{{ $item->product['name_en'] }} {{ $item->order_note ? "(".$item->order_note.")":""}} @foreach($item->orderOptions as $option) @if ($option->name == 'Color') {{ $option->name }} -
@else {{ $option->name }} - {{$option->value }}
@endif @endforeach
{{ $item->quantity ?? '' }} {{ number_format($item->price) ?? '' }} {{ number_format($item->discount_price) ?? '' }} {{ ($item->price * $item->quantity) - $item->discount_price }}
Sub Total {{ number_format($order->sub_total) ?? '' }}
Delivery Fee {{ number_format($order->delivery->fee) ?? '' }}
Tax 5% Included
Grand Total {{ number_format($order->grand_total) ?? '' }}