@extends('admin.layouts.master') @section('buttons') @can('create', \App\Models\Order::class) {{ trans('app.add_order') }} @endcan @endsection @section('content')
{{ trans('app.order_number') }} | {{ trans('app.grand_total') }} | {{ trans('app.payment') }} | {{ trans('app.requested_items') }} | {{ trans('app.requested_at') }} | {{ trans('app.status') }} | |
---|---|---|---|---|---|---|
{{ $cancellation->order->order_number }} {!! $cancellation->order->orderStatus() !!} @if ($cancellation->order->disputed) {{ trans('app.statuses.disputed') }} @endif | {{ get_formated_currency($cancellation->order->grand_total, 2, $cancellation->order->currency_id) }} | {!! $cancellation->order->paymentStatusName() !!} | {{ $cancellation->items_count . '/' . $cancellation->order->quantity }} | {{ $cancellation->created_at->diffForHumans() }} | @if ($cancellation->inReview()) {!! trans('app.waiting_for_approval') !!} @else {!! $cancellation->statusName() !!} @endif | @can('cancel', $cancellation->order) @if ($cancellation->isNew()) {!! Form::open(['route' => ['admin.order.cancellation.handle', $cancellation->order, 'approve'], 'method' => 'put', 'class' => 'form-inline indent5']) !!} {!! Form::close() !!} {!! Form::open(['route' => ['admin.order.cancellation.handle', $cancellation->order, 'decline'], 'method' => 'put', 'class' => 'form-inline indent5']) !!} {!! Form::close() !!} @endif @endcan |
{{ trans('app.order_number') }} | {{ trans('app.grand_total') }} | {{ trans('app.payment') }} | {{ trans('app.requested_items') }} | {{ trans('app.requested_at') }} | {{ trans('app.status') }} | |
---|---|---|---|---|---|---|
{{ $cancellation->order->order_number }} {!! $cancellation->order->orderStatus() !!} @if ($cancellation->order->disputed) {{ trans('app.statuses.disputed') }} @endif | {{ get_formated_currency($cancellation->order->grand_total, 2, $cancellation->order->currency_id) }} | {!! $cancellation->order->paymentStatusName() !!} | {{ $cancellation->items_count . '/' . $cancellation->order->quantity }} | {{ $cancellation->created_at->diffForHumans() }} | {!! $cancellation->statusName() !!} | {{-- @can('cancel', $cancellation->order) @unless ($cancellation->isApproved()) {!! Form::open(['route' => ['admin.order.cancellation.handle', $cancellation->order, 'approve'], 'method' => 'put', 'class' => 'form-inline indent5']) !!} {!! Form::close() !!} @endunless @unless ($cancellation->isDeclined()) {!! Form::open(['route' => ['admin.order.cancellation.handle', $cancellation->order, 'decline'], 'method' => 'put', 'class' => 'form-inline indent5']) !!} {!! Form::close() !!} @endunless @endcan --}} |