@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')
|
@if ($extra['branch']->show_company_logo == '1')
{{ config('settings.company_name')}} @endif{{ $extra['branch']->name }} |
@if(!empty($extra['branch']->img_url))
|
{{$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 | @php $garnd_total = $general_amount+$possion_amount+$installment_amount; @endphp{{$transaction->convert_money_format($garnd_total)}} | @endif |