@extends('admin.layouts.master') @section('content') @can('index', \App\Models\Cart::class) @include('admin/partials/_cart_list') @endcan

@can('massDelete', \App\Models\Cart::class) {!! Form::open(['route' => ['admin.order.cart.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.created_at') }} {{ trans('app.customer') }} {{ trans('app.items') }} {{ trans('app.quantities') }} {{ trans('app.grand_total') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ $trash->created_at->diffForHumans() }} {{ $trash->customer->getName() }} {{ $trash->item_count }} {{ $trash->quantity }} {{ get_formated_currency($trash->grand_total, 2, config('system_settings.currency.id')) }} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.order.cart.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