@extends('layouts.applicant.applicant') @section('head') @endsection @section('title', 'D1') @section('breadcrumbs') @endsection @section('content')

D1

Application: {{ $application->application_number }}

@php $previousStep = $currentStep->getPreviousStep(); @endphp @if($previousStep) Previous Step @endif
@include('applicant.applications.partials.progress-indicator') @php $rdProjects = $application->rdProjects()->orderBy('serial_no')->get(); $patents = $application->patentsGranted()->orderBy('serial_no')->get(); $rdTotalPoints = $rdProjects->sum('credit_points'); $patentTotalPoints = $patents->sum('credit_points'); $grandTotal = $rdTotalPoints + $patentTotalPoints; // Check if user has selected "no" options $hasNoResearchProjects = $application->form_data['d1']['has_no_research_projects'] ?? false; $hasNoPatents = $application->form_data['d1']['has_no_patents'] ?? false; @endphp
{{ number_format($rdTotalPoints, 2) }}
R&D Projects Credit Points
{{ number_format($patentTotalPoints, 2) }}
Patents Credit Points
{{ number_format($grandTotal, 2) }}
Total Credit Points
A) Externally Sponsored R&D Project(s) as PI/Co-PI
@if($application->isEditable() && !$hasNoResearchProjects) @endif
@csrf @method('PUT')
Check this box if you have no externally sponsored R&D projects to add.
@if($rdProjects->count() > 0)
@if($application->isEditable()) @endif @foreach($rdProjects as $project) @if($application->isEditable()) @endif @endforeach
Sr. No Project Title Status Duration Funding Agency Amount (Lakhs) Role Co-PIs Credit Points DocumentActions
{{ $project->serial_no }} {{ $project->project_title }} {{ $project->status_label }} {{ $project->duration }} {{ $project->funding_agency }} ₹{{ number_format($project->amount_lakhs, 2) }} {{ $project->role_label }} {{ $project->total_co_pis }} {{ number_format($project->credit_points, 2) }} @if($project->hasDocument()) @else No Document @endif
Total A) Credit Points: {{ number_format($rdTotalPoints, 2) }}
@else
No R&D Projects Added

Add your externally sponsored R&D projects as PI or Co-PI.

@endif
B) Patent Granted
@if($application->isEditable() && !$hasNoPatents) @endif
@csrf @method('PUT')
Check this box if you have no patents granted to add.
@if($patents->count() > 0)
@if($application->isEditable()) @endif @foreach($patents as $patent) @if($application->isEditable()) @endif @endforeach
Sr. No Patent Name Registration No Date of Award Country Co-Awardees Main Awardee Credit Points DocumentActions
{{ $patent->serial_no }} {{ $patent->patent_name }} {{ $patent->registration_no }} {{ $patent->date_of_award_application->format('d M Y') }} {{ $patent->awarding_country }} {{ $patent->co_awardees ?: 'None' }} {{ $patent->main_awardee_label }} {{ number_format($patent->credit_points, 2) }} @if($patent->hasDocument()) @else No Document @endif
Total B) Credit Points: {{ number_format($patentTotalPoints, 2) }}
@else
No Patents Added

Add your granted patents information.

@endif
Page Total Credit Points
Sum of A) R&D Projects + B) Patents

{{ number_format($grandTotal, 2) }}

@if($previousStep) Previous: {{ $previousStep->name }} @endif
@php $nextStep = $currentStep->getNextStep(); @endphp @if($nextStep) Next: {{ $nextStep->name }} @endif
@if($application->isEditable()) @endif @endsection