@extends('layouts.app-admin') @section('title') {{$invoice->invoice_number_gen}} {{$invoice->student_name}} {{$invoice->invoice_date}} @endsection @section('content')
@php $total_unpaid=0; @endphp
ac.codehat.co.in
9903777163
Golden Apt, 3rd Ln, Noapara, Sonarpur, Kolkata 150
{{-- Affiliated To NYCTA --}} Affiliated To ..
{{-- @dd($invoice) --}} @php $totaldiscount=0 @endphp

Invoice

Name: {{$invoice->student_name}}
Address: {{$invoice->student_address1}}
{{$invoice->student_address2}} {{$invoice->student_address3}}

@foreach($Coursesdtlswithfees as $item) @foreach($item['terms'] as $trmitem) @endforeach @php $totalpaid=0; $FeesStructureJSONArray = (array)json_decode($item['feesstruct']['FeesStructureJSONArray'], true); foreach ($FeesStructureJSONArray as $jsonItem) { if (($jsonItem['PaymentAmount'] != 0) && ($jsonItem['is_paid'] == 1)) { $totalpaid=$totalpaid+$jsonItem['PaymentAmount']; } } @endphp @endforeach @foreach($misc as $item) @endforeach @if ($totaldiscount!=0) @endif {{-- --}} {{-- --}}
@if ($trmitem['PaymentAmount']==0) @php $total_unpaid=$total_unpaid + $trmitem['term_fees']; @endphp @endif
@php $totaldiscount= $totaldiscount+$item->discount_amount @endphp
{{-- --}}
{{--
GST Rate GST Amount GST Type Amount
(With GST)
Amount
(Without GST)
GSTIN GST State
18 {{$invoice->gst_amount}} {{$invoice->gst_type}} {{$invoice->invoice_amount_w_gst}} {{$invoice->invoice_amount_wo_gst}} {{$invoice->invoicee_gstin}} {{$invoice->invoicee_gstin}}
PDF
--}}
@endsection @section('script') @endsection