@extends('admin.layouts.master') @if (Auth::user()->isFromMerchant()) @section('buttons') @can('create', \App\Models\Order::class) {{ trans('app.add_order') }} @endcan @endsection @endif @section('content') {{-- @include('admin.partials._filter') --}} @php $unpaid_orders = $orders->where('payment_status', '<', \App\Models\Order::PAYMENT_STATUS_PAID); @endphp
{{ 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, $order->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 |