@extends('layouts.app') @section('content')

Refunded Orders

@if (session('success')) @endif @if (session('error')) @endif @if ($refundedOrders->isEmpty()) @else @if(auth()->user()->isAdmin() || auth()->user()->isAuditor()) @else @endif @foreach ($refundedOrders as $order) @if(auth()->user()->isAdmin() || auth()->user()->isAuditor()) @else @endif @endforeach
Invoice IDOrder IDCustomer Mobile Original Branch Cancel Branch Customer Service Refunded Amount Service Charge Deduction Status
{{ Str::of($order->invoice->invoice_id)->replace('-', '') }}{{ $order->id }}{{ $order->customer->mobile_no }} {{ $order->branch->name ?? 'N/A' }} {{ $order->cancelBranch->name ?? $order->branch->name ?? 'N/A' }} {{ $order->customer->name }} {{ $order->service->name }} SR {{ number_format($order->invoice && $order->invoice->vouchers ? $order->invoice->vouchers->where('transaction_type', 'refund')->sum('amount') : 0, 2) }} SR {{ number_format($order->invoice && $order->invoice->vouchers ? $order->invoice->vouchers->where('transaction_type', 'service_charge_deduction')->sum('amount') : 0, 2) }} {{ ucfirst($order->status) }}
@endif
@endsection