Invoice Number: #{{ $invoice->number ?? "" }}
@if($invoice->getInvoiceTotalRefundedAmount() != 0)
Total Refunded: ${{ $total_refunded_amt ?? "0.00" }}
@endif
{{--
--}} @if($invoice->dataEntries->count() > 0) {{-- @dd($invoice->toArray()); --}} @foreach($invoice->dataEntries as $key => $data)
Type : {{$data->crystal->type}}
Date {{ date('d M, Y',strtotime($data->date_of_live)) }}
Description {{ $data->description ?? "" }}
Price ${{ $data->price }} x {{ $data->quantity }}
Total Amount ${{ presentPrice($data->getOrderTotalAmount()) }}
@endforeach @if($invoice->additionalItems->count() > 0) @foreach($invoice->additionalItems as $addon_item)
Type : {{$data->crystal->type}}
Date {{ date('d M, Y',strtotime($addon_item->pivot->created_at))}}
Description {{ $addon_item->title ?? "" }}
Price ${{ $addon_item->price }} x {{ $addon_item->pivot->quantity }}
Total Amount ${{ $addon_item->price*$addon_item->pivot->quantity }}
@endforeach @endif @else

No Data Found

@endif {{--
--}}
Total Invoice Amount : ${{ presentPrice($invoice->total_crystals_amount) ?? "0.00" }}
Total Addon Amount : ${{ presentPrice($invoice->total_addon_amount) ?? "0.00" }}
Sub Total: ${{ presentPrice($invoice->sub_total) ?? "0.00" }}
Discount {{ ($invoice->discountCoupon && $invoice->discountCoupon->code != "") ? '('.$invoice->discountCoupon->code.')' : "" }} : ${{ presentPrice($invoice->total_discount) ?? "0.00" }}
Shipping : ${{ presentPrice($shipping_cost) ?? "0.00" }}
Order Total : ${{ presentPrice($invoice->total_payment) ?? "0.00" }}