@foreach($products as $product)
@if(\App\Product::where('id',$product->productid)->count() > 0)
| {{$product->productid}} |
{{\App\Product::findOrFail($product->productid)->title}} |
{{$product->quantity}} |
{{$product->size}} |
@if($product->owner == "vendor")
{{\App\Vendors::findOrFail($product->vendorid)->shop_name}}
@else
Admin
@endif
|
{{ucfirst($product->status)}} |
@else
{{$product->productid}} |
Product Deleted |
{{$product->quantity}} |
{{$product->size}} |
@if($product->owner == "vendor")
@if(\App\Vendors::where('id',$product->vendorid)->count() > 0)
{{\App\Vendors::findOrFail($product->vendorid)->shop_name}}
@else
Vendor Account Deleted
@endif
@else
Admin
@endif
|
{{ucfirst($product->status)}} |
@endif
@endforeach
{{--@for($i=0;$i<=count($order->products)-1;$i++)--}}
{{----}}
{{--@if(\App\Product::where('id',$order->products[$i])->count() > 0)--}}
{{--| {{$order->products[$i]}} | --}}
{{--{{\App\Product::findOrFail($order->products[$i])->title}} | --}}
{{--{{$order->quantities[$i]}} | --}}
{{--{{explode(',',$order->sizes)[$i]}} | --}}
{{--@else--}}
{{--{{$order->products[$i]}} | --}}
{{--Product Deleted | --}}
{{--{{$order->quantities[$i]}} | --}}
{{--{{explode(',',$order->sizes)[$i]}} | --}}
{{--@endif--}}
{{--
--}}
{{--@endfor--}}