@extends('layouts.layout') @section('content')
Reset
@foreach ($list as $item) @endforeach
Order Id Email Amount Order Status Options
{{ $item->order_id }} {{ optional($item->user)->email }} ${{ formatPrice($item->final_amount) }}/- @php $color = match ($item->dynamicStatus->name) { 'In Progress' => 'secondary', 'Delivered' => 'success', 'Failed', 'Refunded' => 'primary', 'Full refunded', 'Partial refunded' => 'orange', 'Shipping' => 'warning', default => 'secondary', }; @endphp {{ $item->dynamicStatus->name }} @if ($item->order_status == 2 || $item->order_status == 7 || $item->order_status == 6)
  • View coupons
  • @else View coupons @endif
    Coupons for Order #{{ $item->order_id }}
    @php $couponsList = getCouponList($item->order_id); @endphp @if ($couponsList != 'false') @foreach ($couponsList as $coupon) @endforeach @else No Coupons found! @endif
    Coupon Type Coupon Code Discount Status
    {{ $coupon->type }} {{ $coupon->code }} @php if ( !str_contains( $coupon['discount_value'], '%', ) ) { $discountVal = "$" . $coupon['discount_value']; } else { $discountVal = $coupon['discount_value']; } @endphp {{ $discountVal }} {{-- @php print_r($coupon); @endphp --}} @if ($coupon->type == 'reward') {{ $coupon->is_active == 0 ? 'Used' : 'Unused' }} @else Used Count : {{getReferralUsedCount($coupon->code)}} @endif
    Showing {{ $list->firstItem() }} to {{ $list->lastItem() }} of total {{ $list->total() }} entries

    {{ $list->links() }}

    @endsection @push('scripts') @endpush