@forelse ($return->order_detail_return as $val)
@php
$install = $val->installs->pluck("install_name")->toArray();
$warranty =$val->warranties->pluck("warranty_name")->toArray();
@endphp
{{ $val->order_return->return_date }} |
{{ $val->model }} |
{{ $val->quantity }} |
{{ implode(",", $warranty) }} |
{{ implode(",", $install) }} |
${{ $val->amount }} |
${{ $val->tax }} |
${{ $val->total_amount }} |
@empty
@endforelse
@if($return->haul_away_return > 0)
{{ $return->return_date }} |
Haul Away |
{{ $return->order_detail_return->sum('qty_haul') }} |
- |
- |
${{ $return->haul_away_return }} |
- |
${{ $return->haul_away_return }} |
@endif
Reason for Return |
{{ $return->return_reason }} |
@if($return->subtotal > 0)
|
Subtotal Return Payment:
|
-${{ number_format($return->subtotal, 2) }} |
@endif
@if($return->restocking_fee > 0)
|
Restocking Fee:
|
-${{ number_format($return->restocking_fee, 2) }} |
@endif
@if($return->total_tax > 0)
|
Tax Return Payment ({{$order->tax}}%):
|
-${{ number_format($return->total_tax, 2) }} |
@endif
@if($return->install_amount > 0)
|
Install Return:
|
-${{ number_format($return->install_amount, 2) }} |
@endif
@if($return->warranty_amount > 0)
|
Protection Plan Return:
|
-${{ number_format($return->warranty_amount, 2) }} |
@endif
@if($return->discount_return > 0)
|
Instant Rebate Return:
|
${{ number_format($return->discount_return, 2) }} |
@endif
@if($return->coupon_discount_return > 0)
|
Promo Code Return:
|
${{ number_format($return->coupon_discount_return, 2) }} |
@endif
@if($return->delivery_charge > 0)
|
Delivery Charge Return:
|
-${{ number_format($return->delivery_charge, 2) }} |
@endif
@if($return->haul_away_return > 0)
|
Haul Away Charge:
|
-${{ number_format($return->haul_away_return, 2) }} |
@endif
|
|
|
Total:
|
-${{ number_format($return->amount, 2) }} |
|
Return Payment Method:
|
{{$return->return_payment_option}} |