@extends('admin.layouts.master') @section('content') @can('create', \App\Models\Product::class)

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

@if (Auth::user()->shop->canAddMoreInventory())
{!! Form::text('searchProduct', null, ['id' => 'searchProduct', 'class' => 'form-control', 'placeholder' => trans('app.placeholder.search_product')]) !!}
@else @include('admin.partials._max_inventory_limit_notice') @endif
@endcan

@can('massDelete', \App\Models\Inventory::class) {!! Form::open(['route' => ['admin.stock.inventory.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.sku') }} {{ trans('app.title') }} {{ trans('app.condition') }} {{ trans('app.price') }} {{ trans('app.quantity') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
@if ($trash->image) {{ trans('app.image') }} @else {{ trans('app.image') }} @endif {{ $trash->sku }} {{ $trash->title }} {{ $trash->condition }} {{ get_formated_currency($trash->sale_price, 2, config('system_settings.currency.id')) }} {{ $trash->stock_quantity }} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.stock.inventory.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
@endsection