@extends('admin.layouts.master') @section('content')

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

@can('initiate', \App\Models\Refund::class) {{ trans('app.initiate_refund') }} @endcan
@foreach ($refunds as $refund) @endforeach
{{ trans('app.order_number') }} {{ trans('app.return_goods') }} {{ trans('app.order_amount') }} {{ trans('app.refund_amount') }} {{ trans('app.status') }} {{ trans('app.created_at') }} {{ trans('app.updated_at') }} {{ trans('app.option') }}
@can('index', \App\Models\Order::class) {{ $refund->order->order_number }} @else {{ $refund->order->order_number }} @endcan {!! get_yes_or_no($refund->return_goods) !!} {{ get_formated_currency($refund->order->grand_total, 2, $refund->order->currency_id) }} {{ get_formated_currency($refund->amount, 2, $refund->order->currency_id) }} {!! $refund->statusName() !!} {{ $refund->created_at->diffForHumans() }} {{ $refund->updated_at->diffForHumans() }} @if ($refund->order->customer_id) @can('index', \App\Models\Customer::class)   @endcan @endif @can('approve', $refund)   @endcan

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

@foreach ($closed as $refund) @endforeach
{{ trans('app.order_number') }} {{ trans('app.return_goods') }} {{ trans('app.order_amount') }} {{ trans('app.refund_amount') }} {{ trans('app.status') }} {{ trans('app.created_at') }} {{ trans('app.updated_at') }} {{ trans('app.option') }}
@can('index', \App\Models\Order::class) {{ $refund->order->order_number }} @else {{ $refund->order->order_number }} @endcan {!! get_yes_or_no($refund->return_goods) !!} {{ get_formated_currency($refund->order->total, 2, $refund->order->currency_id) }} {{ get_formated_currency($refund->amount, 2, $refund->order->currency_id) }} {!! $refund->statusName() !!} {{ $refund->created_at->diffForHumans() }} {{ $refund->updated_at->diffForHumans() }} @if ($refund->order->customer_id) @can('index', \App\Models\Customer::class)   @endcan @endif
@endsection