@include('admin.common.header')
@include('admin.common.sidebar')
Orders
@if (session('status'))
{{ session('status') }}
@endif
Customer Information

Name: {{$order[0]->firstname}} {{$order[0]->lastname}}

Email: {{$order[0]->email}}

Phone: {{$order[0]->phone}}

Billing Address

{{$order[0]->billing_streetaddress}}, {{$order[0]->billing_streetaddress1}}
{{$order[0]->billing_city}}, {{$order['billing_state']}},
{{$order['billing_country']}} - {{$order[0]->billing_zipcode}}

Shipping Address

{{$order[0]->streetaddress}}, {{$order[0]->streetaddress1}}
{{$order[0]->city}}, {{$order[0]->state_name}},
{{$order[0]->country_name}} - {{$order[0]->zipcode}}

Order Information

Order Number: {{$order[0]->id}}

Order Date: {{ \Carbon\Carbon::parse($order[0]->created_at)->format('m/d/Y') }}

Order Total: ${{$item_total}}

Order Status: {{$order[0]->status}}

@if($order[0]->payment_id>0)

Payment Method: @if($order[0]->payment_method=="authorize") CC **** **** **** {{$paymentinfo[0]->last_4_digits}} @else Paypal @endif

Tranaction ID: {{$paymentinfo[0]->transaction_id}}

@endif
@if ($items)
@if ($items[0]->order_type !='quick-quote') @foreach ($items as $i => $item) @endforeach
# Product Id Name Type Proprietary Head Style Material Manufacturer Finish Diameter Length QUANTITY Unit Price
{{$i+1}} {{$item->id }} {{$item->name }} {{$item->type}} {{$item->proprietary }} {{$item->head_style }} {{$item->material }} {{$item->manufacturer}} {{$item->finish}} {{$item->dia }} {{$item->length}} {{$item->quantity }} ${{$item->price }}
Sub Total: ${{$item_total}}
Tax({{$order[0]->tax_percent?$order[0]->tax_percent:'0.00' }}%): ${{$order[0]->tax_amount?$order[0]->tax_amount:'0.00' }}
Shipping({{$order[0]->shipping_service_name }}): ${{$order[0]->ship_amount?$order[0]->ship_amount:'0.00' }}
Total: ${{$order[0]->total_amount}}
@else @foreach ($items as $i => $item) @endforeach
# PART NUMBER Target Price (EA) MANUFACTURER MATERIAL NEED BY QUANTITY Unit Price
1 {{$item->partnumber }} {{$item->targetprice }} {{$item->manufacturer}} {{$item->material }} {{$item->needby }} {{$item->quantity }} ${{$item->price }}
Sub Total: ${{$item_total}}
Tax({{$order[0]->tax_percent?$order[0]->tax_percent:'0.00' }}%): ${{$order[0]->tax_amount?$order[0]->tax_amount:'0.00' }}
Shipping({{$order[0]->shipping_service_name }}): ${{$order[0]->ship_amount?$order[0]->ship_amount:'0.00' }}
Total: ${{$order[0]->total_amount}}
@endif
@endif
@include('admin.common.footer')