@extends('front.inner-layout.app') @section('content')

My Invoice

@include('front.inner-layout.header')
{{-- @dump(request()->segment(4)) --}}
{{-- --}} {{-- @php $details= json_decode($businessOwner); $secret_key = hash('sha256','10'."AUD".$details->device_id."".$details->terminal_secret); // $secret_key = hash('sha256',$amt."AUD".$did."".$secret_key); @endphp --}}

{{--

Concession card holder expiry {{ \Carbon\Carbon::parse($cc->expiry_date)->format('d/m/y')}}

--}}

{{--

{{ ucwords( $client['name']. ' ' .$client['last_name'] ) }} @if(isset($invoiceSettings) && $invoiceSettings->client_email==1) {{ $client['email'] }} @endif @if(isset($invoiceSettings) && $invoiceSettings->client_address==1) {{ $client['address'] }} @endif @if(isset($invoiceSettings) && $invoiceSettings->phone_number==1) {{ $client['phone'] }} @endif

--}} @if($display == 1 && isset($phf) && isset($chf))

@endif
@if(isset($claim_details) && $claim_details->claim_number !='')

{{$claim_details->claim_number}}

@endif
{{-- @if(isset($cc) && $cc->expiry_date)

Concession card holder expiry {{ \Carbon\Carbon::parse($cc->expiry_date)->format('d/m/y')}}

@endif --}}
Invoice number
Date
{{-- --}} {{-- {{dd($ invoice)}} --}}
Location
Service Provider
Provider Number
{{----}} {{----}} {{----}} {{----}} {{----}} {{----}} @php $item_discounts = 0; $cancel_flag = false; @endphp @if(isset($charge) && $charge !='' && $cancel_flag == true) @else @if(isset($blank_invoice_for_cancel_charge) && $blank_invoice_for_cancel_charge == 0 && isset( $appointment) && $appointment !='' || isset($charge) && $charge !='') {{-- @if(isset( $appointment) && $appointment !='') --}} @if( isset($appointmentType->is_gst) && $appointmentType->is_gst == "on" ) @else @endif @if(empty($hasinvoice)) {{-- --}} @php $grandTotalGst = 0; $item_discounts += 0; @endphp @if( isset($appointmentType->is_gst) && $appointmentType->is_gst == "on" ) @php $itemGST = round( $appointmentType->fee/11, 2 ); $grandTotalGst += $itemGST; $GST_Text = "10%"; @endphp @else @php $itemGST = 0; $grandTotalGst += $itemGST; $GST_Text = "FREE"; @endphp @endif {{-- --}} @endif @endif @if(isset($invioceproduct) && $invioceproduct != '') @foreach($invioceproduct as $index => $ip) @if($ip->notes_product_name->is_gst =='on') @endif @if( $ip->notes_product_name->is_gst == "on" ) @else @endif {{-- --}} @php $grandTotalGst = 0; $item_discounts += $ip->product_discount; @endphp @if( $ip->notes_product_name->is_gst == "on" ) @php $itemGST = round($ip->quantity * $ip->price/11, 2 ); $grandTotalGst += $itemGST; $GST_Text = "10%"; @endphp @else @php $itemGST = 0; $grandTotalGst += $itemGST; $GST_Text = "FREE"; @endphp @endif {{-- --}} @endforeach @endif @endif @if($item) @foreach($item as $s_index => $tid) @if( isset( $tid->appointment_type ) )
Qty Item Code Cost $ Discount GST Total ItemCodeCostQtyTotal
- {{ $charge ?? '0.00' }} - $0.00 {{ $charge ?? '0.00' }}
{{$appointmentType->code}} {{$GST_Text}} {{$appointmentType->fee}}
{{$ip->quantity ?? ''}}
{{$ip->product_discount}}{{$GST_Text}} {{number_format(($ip->quantity * $ip->price),2) ?? ''}}