@extends('admin.includes.master-admin') @section('content')

Pending Products

@if(Session::has('message'))
× {{ Session::get('message') }}
@endif
@foreach($products as $product) @endforeach
ID# Product Title Price Category Status Actions
{{$product->id}} {{$product->title}} {{$product->price}} {{\App\Category::where('id',$product->category[0])->first()->name}}
@if($product->category[1] != "") {{\App\Category::where('id',$product->category[1])->first()->name}}
@endif @if($product->category[2] != "") {{\App\Category::where('id',$product->category[2])->first()->name}} @endif
@if($product->status == 1) Active @elseif($product->status == 2) Pending @else Inactive @endif View Accept Reject
@stop @section('footer') @stop