@extends('admin.layouts.master') @section('content')

{{ trans('app.products') }}

@can('create', \App\Models\Product::class) {{ trans('app.bulk_import') }} {{ trans('app.add_product') }} @endcan
@can('massDelete', \App\Models\Product::class) @else @endcan @if (Auth::user()->isFromPlatform()) @else @endif
{{ trans('app.image') }} {{ trans('app.name') }} {{ trans('app.type') }} {{ trans('app.gtin') }} {{ trans('app.category') }} {{ trans('app.listing') }}{{ trans('app.added_by') }}{{ trans('app.option') }}
{{-- @if (Auth::user()->isFromPlatform()) --}}

@can('massDelete', \App\Models\Product::class) {!! Form::open(['route' => ['admin.catalog.product.emptyTrash'], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm btn btn-default btn-flat ajax-silent', 'title' => trans('help.empty_trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'right']) !!} {!! Form::close() !!} @else @endcan {{ trans('app.trash') }}

@foreach ($trashes as $trash) @endforeach
{{ trans('app.image') }} {{ trans('app.name') }} {{ trans('app.type') }} {{ trans('app.model_number') }} {{ trans('app.category') }} {{ trans('app.option') }}
@if ($trash->featureImage) {{ trans('app.featured_image') }} @else {{ trans('app.image') }} @endif {{ $trash->name }} {{ $trash->type }} {{ $trash->model_number }} @foreach ($trash->categories as $category) {{ $category->name }} @endforeach @can('delete', $trash)   {!! Form::open(['route' => ['admin.catalog.product.destroy', $trash->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.delete_permanently'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
{{-- @endif --}} @endsection