@extends('adminlte::page') @section('title', $pageTitle) @section('content_header')

{{ $pageTitle }}

@stop @section('content')
@hasLevelOrLess(2)
Order Number Channel Created
@else @if(!count($orders))
You have not placed any orders. Please click here to the visit the store and place your first order.
@else {{Form::label('filtertime','Filter Orders: ')}} {{Form::select('filtertime',$filter_time,$filter_selected,['onchange' => 'window.location=this.value'])}}
@foreach ($orders as $order)
Order Placed
{{\Carbon\Carbon::parse($order->orderCreated)->format("F d, Y")}}
Total
{{$tldhelper->formatDollars($order->total)}}
Order #{{$order->channelOrderNum}}
@if(strpos($order->channelOrderNum,'yhst') !== false || strpos($order->channelOrderNum,'test-') !== false) Order Details @endif
@foreach($order->items as $item)
{{--Just use advanced Search Images here--}} {{--@if($tldhelper->checkRemoteFile('http://ep.yimg.com/ay/'.$yahooId.'/'.$item->prod_id.$yahoo_img_ext)) @elseif($tldhelper->checkRemoteFile('http://ep.yimg.com/ay/'.$yahooId.'/'.$item->prod_id.'-1'.$yahoo_img_ext)) @elseif($tldhelper->checkRemoteFile('http://ep.yimg.com/ay/'.$yahooId.'/'.$item->prod_id.'-2'.$yahoo_img_ext)) @else {!!$item->image!!} @endif--}}
@if($item['image']) {!!str_replace('http://ep.','https://sep.',$item['image'])!!} @elseif($tldhelper->checkRemoteFile('https://sep.yimg.com/ay/'.$yahooId.'/'.$item['prod_id'].'-6'.$yahoo_img_ext)) @else @endif
{{$tldhelper->formatDollars($item['price'])}}
@if(array_key_exists('options', $item)) @foreach(json_decode($item['options']) as $option) @endforeach @endif {{Form::submit('Buy it Again')}}
@if(!empty($item['trackingnum'])) Track Package @endif @if($reviews_enabled) Write a Product Review @endif
@endforeach
@endforeach
{{ $orders->appends(['filter_time' => Request::get('filter_time')])->links() }} @endif @endlevel
@stop @section('js') @stop