@extends('layouts.admin') @section('content') @push('css') @endpush
@php $t_list = model('Investment')::whereNotNull('closing_request_date')->count(); $d_list = model('Investment')::whereNotNull('closing_request_date')->where('capital_return_status', 'Due')->count(); @endphp
Closing Payment Report
Clear
@php $total_amount = 0; $due_amount = 0; $paid_amount = 0; $profit_amount = 0; @endphp @foreach ($investments as $investment) @php $total_amount += $investment->amount; @endphp @endforeach
Sl. Member Name GA Name Deed No. Package Name Bank Name Branch Name A/C No Check No. Close Date Payment Date Capital Profit Due Amount Paid Amount Action
{{$loop->iteration}} {{ cn($investment, 'member.name', '') }} ({{ cn($investment, 'member.user_id', '') }}) {{ cn($investment, 'ga.name', '') }} ({{ cn($investment, 'ga.user_id', '') }}) {{ $investment->deed_no }} {{ cn($investment, 'package.package_name', '') }} {{ $investment->banck_name }} {{ $investment->br_name }} {{ $investment->ac_number }} {{ $investment->chk_no }} {{ \Carbon\Carbon::parse($investment->closing_request_date)->format('d-M-Y') }} {{ $investment->payment_date ? \Carbon\Carbon::parse($investment->payment_date)->format('d-M-Y') : '' }} {{ number_format($investment->amount) }} - @if($investment->capital_return_status =='Due') {{ number_format($investment->amount) }} @php $due_amount +=$investment->amount; @endphp @endif @if($investment->capital_return_status =='Paid') {{ number_format($investment->amount) }} @php $paid_amount +=$investment->amount; @endphp @endif {{ $investment->capital_return_status }}
Sub Total : {{ number_format($total_amount) }} 0 {{ number_format($due_amount) }} {{ number_format($paid_amount) }}
{{$investments->appends(request()->all())->links()}}
@push('alljs') @endpush @endsection