@extends('admin.layouts.master') @section('content') @can('create', \App\Models\Inventory::class) @include('admin.inventory._add') @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 @if ($trash->variants_count) {{ $trash->variants_count . ' ' . trans('app.skus') }} @else {{ $trash->sku }} @endif {{ $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