@can('massDelete', \App\Models\Cart::class)
|
@endcan
{{ $cart_list->created_at->diffForHumans() }} |
{{ $cart_list->customer->name }} |
{{ $cart_list->item_count }} |
{{ $cart_list->quantity }} |
{{ get_formated_currency($cart_list->grand_total, 2, config('system_settings.currency.id')) }} |
@if (Gate::allows('create', \App\Models\Order::class) || Gate::allows('update', $cart_list))
{!! Form::open(['route' => ['admin.order.order.create'], 'method' => 'get', 'style' => 'display:inline;']) !!}
{{ Form::hidden('customer_id', $cart_list->customer->id) }}
{{ Form::hidden('cart_id', $cart_list->id) }}
{!! Form::close() !!}
@endif
@can('view', $cart_list)
@endcan
@can('delete', $cart_list)
{!! Form::open(['route' => ['admin.order.cart.trash', $cart_list->id], 'method' => 'delete', 'style' => 'display:inline;']) !!}
{!! Form::close() !!}
@endcan
|
@endforeach