@extends('backend.master') @section('document-title') সিসি-লোন বিস্তারিত @endsection @section('page-title') সিসি-লোন বিস্তারিত @endsection @section('active-breadcrumb-item') সিসি-লোন বিস্তারিত @endsection {{--This file must be included if Bootstrap Datatable is needed--}} @include('backend.includes.data-table') {{--Main Content of the page goes here--}} @section('content')
{{--

Loan Details

--}}
{{-- --}} @php($totalInterest=0) @php($principalBalance = $loan->principal_balance) @php($limitBalance = $loan->limiting_balance) @php($interestRate = $loan->interest_rate) @php($interestFactor = ($interestRate/(365*100))) @php($count=0) @php($lastTransactionDate = null) @foreach($transactionGroup as $created_at => $transactions) @php($latestTransactionDate = Carbon\Carbon::parse($created_at)) @if($count==0) @php($previousTransactionDate = Carbon\Carbon::parse($loan->created_at)) @else @php($previousTransactionDate = $lastTransactionDate) @endif @php($dayInterval = $previousTransactionDate->diffInDays($latestTransactionDate)) @php($interest = $principalBalance*$interestFactor*$dayInterval) @php($totalInterest +=$interest) @php($principalBalance += $interest) @php($currentLimitBalance = ($limitBalance - $principalBalance)) {{-- --}} @foreach($transactions as $transaction) @php($transaction->type=='Deposit' ? $principalBalance -= $transaction->amount : $principalBalance += $transaction->amount) @php($currentLimitBalance = ($limitBalance - $principalBalance)) {{-- --}} @endforeach @endforeach {{-- @foreach($transactions as $transaction)--}} {{-- @php($loanBalance=loanBalance($loan->id))--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @endforeach--}}
ব্যাংক : {{ $loan->bank->name }} একাউন্ট টাইটেল : {{ $loan->ac_title }} একাউন্ট আইডি : {{ $loan->ac_id }} সর্বোচ্চ লিমিট : {{ bengaliNumber($loan->limiting_balance,2) }}
তারিখ লেনদেনের ধরণ বিবরণ চেক নং ডেবিট ক্রেডিট প্রিঞ্চিপাল ব্যালেন্স লিমিট ব্যালেন্সAction
মুনাফার হার ({{ bengaliNumber($loan->interest_rate,dp($loan->interest_rate)) }}%) উত্তোলন
{{ bengaliString(dateFormat($loan->created_at,'d/m/Y')) }} লোন শুরু {{ bengaliNumber($loan->principal_balance,2) }} {{ bengaliNumber($loan->principal_balance,2) }} {{ bengaliNumber(($loan->limiting_balance-$loan->principal_balance),2) }}
{{ bengaliString(dateFormat($created_at,'d/m/Y')) }} {{ 'দৈনিক সুধ' }} {{ bengaliNumber($interest,2) }} {{ bengaliNumber($principalBalance,2) }}{{ bengaliNumber($currentLimitBalance,2) }}--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
{{ bengaliString(dateFormat($created_at,'d/m/Y')) }} {{ $transaction->type =='Deposit'? 'জমা' : 'উত্তোলন' }} {{ $transaction->particular }} {{ $transaction->type=='Deposit'? bengaliNumber($transaction->amount,2) : '' }} {{ $transaction->type=='Withdrawal'? bengaliNumber($transaction->amount,2) : '' }}{{ bengaliNumber($principalBalance,2) }}{{ bengaliNumber($currentLimitBalance,2) }}--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
{{ dateFormat($transaction->created_at,'d/m/Y') }}{{ $transaction->type }}----{{ $transaction->type=='Deposit'? numberFormat($transaction->amount) : '' }}-{{ $transaction->type=='Withdrawal'? numberFormat($transaction->amount) : '' }}----}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{--
মোট {{ bengaliNumber($totalInterest,2) }}
@endsection {{--this script override all--}} @section('script') @include('backend.report.script') @endsection {{--this style override all--}} @section('style') @include('backend.report.style') @endsection