@extends('backend.master') @section('title') {{ ___('common.dashboard') }} @endsection @section('content')
@if (Auth::user()->role_id == 4)

{{ ___('common.hello') }} {{ Auth::user()->name }} | {{ ___('school.UDISE Number :') }} {{ Auth::user()->school->udise_no }}

@if(Auth::user()->school->schoolApplyAll->where('status', '!=', NULL)->count() != 0)
{{-- --}} {{-- --}} {{-- @dd(Auth::user()->school->schoolApplyAll) --}} @foreach (Auth::user()->school->schoolApplyAll->where('status', '!=', NULL) as $key=>$item) {{-- --}} @endforeach
{{ ___('common.SL') }} Action {{ ___('common.application_number') }}{{ ___('common.submission_date') }}{{ ___('common.Start Date') }} {{ ___('common.End Date') }} {{ ___('common.Application Status') }} Inspection Pdf{{ ___('common.Tracking') }}
{{$key+1}} @if($item->status == "reject" || $item->status == '') {{-- null means still not completed & approved, reject means reject by admin for incomplete any criteria --}} {{ ___('common.edit') }} @else @endif {{ $item->application_no }} {{date("jS F Y", strtotime($item->submitted_date))}}{{ $item->approved_date == null ? '' : $item->approved_date }} {{ $item->expired_date == null ? '' : $item->expired_date }} @if (@$item->status == 'pending') {{ ___('common.pending') }} @elseif (@$item->status == 'reject') {{ ___('common.reject') }} @elseif (@$item->status == 'accept') {{ ___('common.accept') }} @elseif (@$item->status == \App\Enums\ApplicationStatus::ASSIGN_INSPECTION) {{ ___('common.Assigned for Inspection') }} @elseif (@$item->status == \App\Enums\ApplicationStatus::VERIFIED_BY_INSPECTION_OFFICER) {{ ___('common.Inspection Completed') }} @elseif (@$item->status == \App\Enums\ApplicationStatus::PROCEED_TO_SUPERADMIN_APPROVAL) {{ ___("common.proceed-to-superadmin-approval") }} @elseif (@$item->status == \App\Enums\ApplicationStatus::APPROVED) {{ ___("common.Approved") }} @endif @if(@$item->status == "assign-inspection") Download @endif
@else @endif
@endif @if (Auth::user()->role_id == 1 || Auth::user()->role_id == 2)

{{ ___('common.total_school') }}

{{ $result['granted'] + $result['nonGranted'] + $result['selfFinance'] + $result['permanentlyUnaided'] + $result['partiallyGranted']}}

{{ ___('common.total_granted_school') }}

{{ $result['granted'] }}

{{ ___('common.total_Non Granted_school') }}

{{ $result['nonGranted'] }}

स्वयं अर्थसहाय्यित

{{ $result['selfFinance'] }}

कायम विनाअनुदानित

{{ $result['permanentlyUnaided'] }}

अंशतः अनुदानितानित

{{ $result['partiallyGranted'] }}

Applicationn Accepted

{{ $result['approved'] }}

Inspection Assigned

{{ $result['assign_inspection'] }}

Inspection Completed

{{ $result['verified_by_inspection_officer'] }}

{{ ___('common.application_summary') }}

{{ ___('common.application_summary') }}

{{ ___('common.total_school') }}

{{ ___('common.total_granted_school') }}

{{ ___('common.total_Non Granted_school') }}

@endif

{{ ___('school.Copied!') }}

{{ ___('school.Application Number copied to clipboard') }}

{{ ___('school.OK') }}

{{ ___('common.Are you sure!') }}

{{ ___('common.You wont be able to revert this!') }}

{{ ___('common.Yes, delete it!') }}

{{ ___('common.Cancel') }}

{{ ___('common.Deleted') }}

{{ ___('common.Deleted Successfully') }}

{{ ___('common.OK') }}

@endsection @push('script') @include('backend.partials.delete-ajax') @endpush