INVOICE

@if(isset($customer->address_line_2)) @endif @if(isset($customer->postal_code)) @endif @if(isset($customer->phone)) @endif
SHIP TO INVOICE # {{ $invoice_number }}
{{ isset($customer->name) ? $customer->name .' ('. $customer->ig_handle .')' : $customer->ig_handle }} INVOICE DATE {{ date('d-M-Y', strtotime($dataentry->date_of_live)) }}
{{ $customer->address_line_1 }} DUE DATE {{ date('d-M-Y', strtotime($dataentry->date_of_live)) }}
{{ $customer->address_line_2 }}
{{ 'Zip Code: ' . $customer->postal_code }}
{{ 'Phone: ' . $customer->phone }}
@php($total_price = 0) @php($reversal = 0) @foreach($dataentries as $index => $dataentry) @php($total_price += $dataentry->price + $dataentry->shipping_reversal) @if($dataentry->shipping_reversal > 0) @php($reversal = $dataentry->shipping_reversal) @endif @endforeach
Price (SGD)
Date of Live Customer IG Handle Crystal Type Description Total
{{ $index == '0' ? date('d/m/Y', strtotime($dataentry->date_of_live)) : '' }} {{ $index == '0' ? $dataentry->customer->ig_handle : '' }} {{ $dataentry->crystal->type }} {{ $dataentry->description }} $ {{ $dataentry->price + $dataentry->shipping_reversal }}
{{ date('d/m/Y', strtotime($dataentry->date_of_live)) }} Total $ {{ $total_price }}
Add: Shipping (local) {{ $shipping['message'] }}
GRAND TOTAL @php($shipping['reversal'] == 1 ?: $reversal = 0) $ {{ $total_price + $shipping['cost'] - $reversal}}

READ ME 🙂

Thank you for your support! We hope you love your crystals!

With love and blessings, Caring Crystals.