@extends('admin.layouts.master') @section('buttons') @if (is_incevio_package_loaded('ebay') && is_ebay_configured()) @include('ebay::_pull_btn') @endif {{-- @if (Auth::user()->isFromMerchant()) @can('create', \App\Models\Order::class) {{ trans('app.add_order') }} @endcan @endif --}} @endsection @section('content') @php $order_statuses = \App\Helpers\ListHelper::order_statuses(); $payment_statuses = \App\Helpers\ListHelper::payment_statuses(); $fulfilment_types = \App\Helpers\ListHelper::fulfilment_types(); @endphp

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

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

{{-- Box header --}}
@if (Auth::user()->isFromPlatform()) @endif
{{ trans('app.order_number') }} {{ trans('app.order_date') }} {{ trans('app.model.delivery_boy') }}{{ trans('app.shop') }}{{ trans('app.customer') }} {{ trans('app.grand_total') }} {{ trans('app.payment_status') }} {{ trans('app.order_status') }} {{ trans('app.options') }}  

@can('massDestroy', \App\Models\Order::class) {!! Form::open(['route' => ['admin.order.order.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() !!} {{ trans('app.archived_orders') }} @else {{ trans('app.archived_orders') }} @endcan

@foreach ($archives as $archive) @endforeach
{{ trans('app.order_number') }} {{ trans('app.order_date') }} {{ trans('app.grand_total') }} {{ trans('app.payment') }} {{ trans('app.status') }} {{ trans('app.archived_at') }} {{ trans('app.option') }}
@can('view', $archive) {{ $archive->order_number }} @else {{ $archive->order_number }} @endcan {{ $archive->created_at->toDayDateTimeString() }} {{ get_formated_currency($archive->grand_total, 2, $archive->currency_id) }} {!! $archive->paymentStatusName() !!} {!! $archive->orderStatus() !!} {{ $archive->deleted_at->diffForHumans() }} @can('archive', $archive) @endcan @can('delete', $archive) {!! Form::open(['route' => ['admin.order.order.destroy', $archive->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