@extends('layouts.pdf') @section('title') {{$extra['module_name']}} @endsection @section('content') {{--

Printing Date & Time: {{ date(config('settings.date_format'), strtotime(now() )) }}

--}}
@if ($extra['branch']->show_company_logo == '1') @endif @if ($extra['branch']->show_company_logo == '1')

{{ config('settings.company_name')}}

@endif

{{ $extra['branch']->name }}

@if(!empty($extra['branch']->img_url)) @endif

Payment Plan


@php // $general_amount= ''; // $installment_amount= ''; // $possion_amount=''; @endphp @if (!$general->isEmpty()) @foreach ($general as $item) @endforeach @endif @if (!$installment->isEmpty()) @php $array =''; @endphp @foreach ($installment as $item) @php $count = ''; $count = $item->term; @endphp @for ($i=1; $i <= $count; $i++) @endfor @endforeach @endif @if (!$possession->isEmpty()) @foreach ($possession as $item) @endforeach @endif @foreach ($general as $key => $gen ) @php if( $possession[$key]->fixed_or_percentage == '1'){ $possion_true = $possession[$key]->fixed_or_percentage; } if($gen->fixed_or_percentage == '1') { $genral_true = $gen->fixed_or_percentage; } @endphp @endforeach @if($possion_true == '1' || $genral_true == '1') @else @php $garnd_total = $general_amount+$possion_amount+$installment_amount; @endphp @endif
{{$plan_name ? $plan_name:'-'}}
Payment Amount {{$transaction->systemSettingCurrency()}} Installment Type Schedule Date
{{$item->term}} @php if($item->fixed_or_percentage == true) { $payableAmount = $item->payable_amount.'%'; } else { $payableAmount = $transaction->convert_money_format($item->payable_amount); $general_amount += $item->payable_amount; } @endphp {{ $payableAmount }} {{$item->type}} @php $general_date = $item->is_custom_date == '1' ? Carbon\Carbon::parse($item->term_date)->format('d/m/Y') : App\Models\Common::getUpcomingDates(trim($item->term_date),Carbon\Carbon::now()) @endphp {{ date('d-M-Y',strtotime(str_replace('/','-',$general_date)))}}
{{$item->type.' '.$i}} @php if($item->fixed_or_percentage) { $amount = ($minusTotal / intval($item->term)); } else { $amount = $transaction->convert_money_format($item->payable_amount); $installment_amount +=$item->payable_amount; } @endphp {{ $amount }} @php $repeats = [ '1'=>'Monthly', '2'=>'Bi Monthly', '3'=>'Quarterly', '6'=>'Half Yearly', '12'=>'Annually', ]; $curent_date = $item->is_custom_date == '1' ? Carbon\Carbon::parse($item->term_date)->format('d/m/Y') : App\Models\Common::getUpcomingDates(trim($item->term_date),Carbon\Carbon::now()); if(!empty($array)) { $d = date('Y-m-d',strtotime(str_replace('/','-',$array))); }else{ $d = date('Y-m-d',strtotime(str_replace('/','-',$curent_date))); } @endphp @foreach( $repeats as $m => $repeat ) @if(trim($repeat) == trim($item->installment_repeat)) @php if($i != 1) { $actual_date = date('d-m-Y',strtotime($d.'+'.$m.' month')); $array = $actual_date; }else{ $actual_date = $d; } @endphp {{ $repeat }} @endif @endforeach {{ date(config('settings.date_format'), strtotime($actual_date))}}
{{$item->term}} @php if($item->fixed_or_percentage == true) { $payableAmount = $item->payable_amount.'%'; } else { $payableAmount = $transaction->convert_money_format($item->payable_amount); $possion_amount += $item->payable_amount; } @endphp {{ $payableAmount }} {{$item->type}} {{date('d-M-Y',strtotime(str_replace('/','-',$item->term_date))) }}
Total{{$transaction->convert_money_format($garnd_total)}}
@stop