@extends('layouts.admin') @section('h1') Products @stop @section('content')
@if (count($objects) > 0)
@foreach($objects as $object) @endforeach
Picture Title Category Vendor Price Reviews Order requests Views count Is Active Updated Created Actions
@if($object->leading_picture) @endif {{ $object->title}} {{ $object->category->title }} / {{ $object->subcategory->title }} {{ $object->vendor->full_name}} {{ $object->price_amount}} {{$object->price_currency->symbol}} / {{$object->price_unit->title}} {{ $object->reviews_count}} / {{ $object->reviews_rating}} {{ $object->order_requests_count }} {{ $object->views_count }} {{ $object->is_active ? 'yes' : 'no'}} {{$object->updated_at->diffForHumans()}} {{$object->created_at->diffForHumans()}} {!!Form::open(['route' => ['admin.products.destroy', $object->id], 'method' => 'delete'])!!} {!!Form::close()!!}
{!!$objects->render()!!}
@else No items. @endif
@stop @section('footer_js') @stop