@extends('admin.layouts.master') {{-- @section('buttons') @can('create', \App\Models\Order::class) {{ trans('app.add_order') }} @endcan @endsection --}} @section('content')

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

@foreach ($cancellations as $cancellation) @if ($cancellation->isOpen()) @endif @endforeach
{{ trans('app.order_number') }} {{ trans('app.shop') }} {{ trans('app.customer') }} {{ 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 {{ $cancellation->shop->getName() }} {{ $cancellation->customer->getName() }} {{ 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) {{ trans('app.approve') }} @endcan
@endsection