@extends('admin.layouts.master') @section('buttons') @if(Gate::allows('create', App\Order::class) || Gate::allows('create', App\Cart::class)) {{ trans('app.add_order') }} @endif @endsection @section('content') @can('index', App\Cart::class) @include('admin/partials/_cart_list') @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->name }} {{ $trash->item_count }} {{ $trash->quantity }} {{ get_formated_currency($trash->grand_total) }} {{ $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