{{--
--}}
@php $i = 0; @endphp
@if (!empty($rate_type))
@foreach ($rate_type as $val)
@php $i++; @endphp
@endforeach
@endif
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
@if (!empty($row->ProjectTenderStartDate) && !empty($row->ProjectTenderEndDate))
{{--
--}}
@endif
@if ($row->SecurityDepositAmount > 0)
{{--
--}}
@php
$expiryDate = \Carbon\Carbon::parse(
$row->SecurityDepositExpiryDate,
);
$currentDate = \Carbon\Carbon::now();
$diffTime = $expiryDate->diff($currentDate);
$timestr = [];
if ($expiryDate >= $currentDate) {
if ($diffTime->y > 0) {
$timestr[] = $diffTime->y . ' year';
}
if ($diffTime->m > 0) {
$timestr[] = $diffTime->m . ' month';
}
if ($diffTime->d > 0) {
$timestr[] = $diffTime->d . ' day';
}
}
@endphp
@if ($expiryDate >= $currentDate)
Remaining time for Security Deposit expiry is
{{ implode(' and ', $timestr) }}
@else
Security Deposit has been expired
@endif
{{--
--}}
@endif
@if ($row->ProjectStatus == 'work_in_progress')
{{--
--}}
@php
$workEndDate = \Carbon\Carbon::parse($row->ProjectWorkEndDate);
$diffTime = $workEndDate->diff($currentDate);
$timestr = [];
if ($workEndDate >= $currentDate) {
if ($diffTime->y > 0) {
$timestr[] = $diffTime->y . ' year';
}
if ($diffTime->m > 0) {
$timestr[] = $diffTime->m . ' month';
}
if ($diffTime->d > 0) {
$timestr[] = $diffTime->d . ' day';
}
}
@endphp
@if ($workEndDate >= $currentDate)
Remaining time for Work completion is
{{ implode(' and ', $timestr) }}
@else
Project completion deadline is over
@endif
{{--
--}}
@endif
@if (!empty($project_extensions[0]))
PROJECT
EXTENSIONS
From Date |
To Date |
Approved By |
Date |
@foreach ($project_extensions as $ext)
{{ \Carbon\Carbon::parse($ext->ExtensionFromDate)->format('d-m-Y') }}
|
{{ \Carbon\Carbon::parse($ext->ExtensionToDate)->format('d-m-Y') }}
|
{{ $ext->UserFirstName . ' ' . $ext->UserLastName }}
|
{{ \Carbon\Carbon::parse($ext->ExtensionAddedDate)->format('d-m-Y') }}
|
@endforeach
@endif
{{--
--}}
{{--
--}}
@if (!empty($authority))
@foreach ($authority as $val)
@endforeach
@endif
@if (!empty($notifications[0]) && env('ORG')!="STEM")
Project
Approval Status
SENT BY |
SENT TO |
SENT FOR |
COMMENT |
SENT DATE |
@foreach ($notifications as $not)
{{ $not->SenderName }}
@if (!empty($not->SenderDesignation))
[{{ strtoupper($not->SenderDesignation) }}]
@endif
|
{{ $not->ReceiverName }}
@if (!empty($not->ReceiverDesignation))
[{{ strtoupper($not->ReceiverDesignation) }}]
@endif
|
{{ $not->NotificationInfo }} |
{{ $not->NotificationComment }} |
{{ \Carbon\Carbon::parse($not->NotificationDate)->format('d-m-Y H:i a') }}
|
@endforeach
@endif
{{--
--}}