@extends('layouts.applicant.applicant') @section('head') @endsection @section('title', 'D19 - National Textbook') @section('breadcrumbs') @endsection @section('content')

Text book Published by National Publisher

Application: {{ $application->application_number }}

@php $previousStep = $currentStep->getPreviousStep(); @endphp @if($previousStep) Previous Step @endif
@include('applicant.applications.partials.progress-indicator') @php $nationalTextbooks = $application->nationalTextbooks()->orderBy('serial_no')->get(); $totalCreditPoints = $nationalTextbooks->sum('credit_points'); $evaluationPoints = min($totalCreditPoints, 6); // Max 6 for evaluation $totalBooks = $nationalTextbooks->count(); $recentBooks = $nationalTextbooks->where('year_of_publication', '>=', now()->year - 5)->count(); $booksByYear = $nationalTextbooks->groupBy('year_of_publication')->map->count(); $booksByType = $nationalTextbooks->groupBy('publication_type')->map->count(); $nationalBooks = $nationalTextbooks->where('publication_type', 'national')->count(); $internationalChapters = $nationalTextbooks->where('publication_type', 'international')->whereNotNull('title_of_chapter')->count(); @endphp
No National Textbook Declaration
no_national_textbook ? 'checked' : '' }} @if(!$application->isEditable()) disabled @endif onchange="toggleNoNationalTextbook()">
Check this box if you have not published any textbooks with national publishers or chapters in international books. This step is non-mandatory to fill.
@if(!$application->no_national_textbook)
{{ number_format($totalCreditPoints, 2) }}
Total Credit Points
{{ number_format($evaluationPoints, 2) }}
Maximum Credit Points (Max 6)
{{ $nationalBooks }}
National Books
{{ $internationalChapters }}
International Chapters
Credit Points Calculation
Credit Points per Book/Chapter: 2 Points
Total Publications: {{ $totalBooks }}

Important:
  • Maximum 6 credit points can be used for further calculation
  • 2 credit points per national textbook or international chapter
  • Include both complete books and book chapters
  • This step is non-mandatory to fill
  • Upload proof documents for verification
National Textbook & International Chapter Details
@if($application->isEditable()) @endif
@if($nationalTextbooks->count() > 0)
@if($application->isEditable()) @endif @foreach($nationalTextbooks as $textbook) @if($application->isEditable()) @endif @endforeach
Sr. No Type Book Title Chapter Title Author(s) Publisher Year Pages Credit Points Proof DocumentActions
{{ $textbook->serial_no }} {{ ucfirst($textbook->publication_type) }} {{ $textbook->title_short }} @if($textbook->title_of_chapter) {{ $textbook->chapter_title_short }} @else - @endif {{ $textbook->author }} {{ Str::limit($textbook->publishers, 15) }} {{ $textbook->year_of_publication }} {{ $textbook->book_age }} years ago @if($textbook->page_range) {{ $textbook->page_range }} @else - @endif {{ number_format($textbook->credit_points, 2) }} @if($textbook->hasDocument()) @else No Document @endif
Publication Summary

Total Publications: {{ $totalBooks }}

National Books: {{ $nationalBooks }}

International Chapters: {{ $internationalChapters }}

Total Credit Points: {{ number_format($totalCreditPoints, 2) }}

Evaluation

Evaluation Points: {{ number_format($evaluationPoints, 2) }} / 6

@if($totalCreditPoints > 6)

Note: Total exceeds 6, capped at 6 for evaluation

@else

Status: Within evaluation limit

@endif
@if($booksByYear->count() > 0)
Year-wise Distribution
@foreach($booksByYear->sortKeysDesc()->take(4) as $year => $count)
{{ $count }}
{{ $year }}
@endforeach
@endif @if($booksByType->count() > 0)
Publication Type Distribution
@foreach($booksByType as $type => $count)
{{ $count }}
{{ ucfirst($type) }}
@endforeach
@endif
@else
No National Publications Added

Add your published national textbooks or international chapters to earn credit points.

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