@extends('layouts.adminLayout.dashboardLayout') @section('styles') @endsection @section('content') @if (isset($countData) && !empty($countData)) {{ Breadcrumbs::render('EditCountPayment', $countData) }} @else {{ Breadcrumbs::render('AddCountPayment') }} @endif Back {!! Form::open([ 'route' => ['update-count'], 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'countForm', 'autocomplete' => 'off', ]) !!} {!! Form::hidden('ID', old('ID', $countData->ID ?? ''), []) !!} {!! Form::label('Exam Name', 'Exam Name', ['class' => 'text-left form-label fw-bold labelName']) !!} {!! Form::select('Exam Type', $examsList, old('Exam Type', $countData->{'Exam Type'} ?? ''), [ 'class' => 'form-control form-select form-select-lg', 'placeholder' => 'Select Exam Type', 'disabled' => !empty($countData->{'Exam Type'}) ? true : false, ]) !!} @error('Exam_Type') {{ $message }} @enderror {!! Form::label('CenterNo', 'Center No', ['class' => 'text-left form-label fw-bold labelName']) !!} {!! Form::text('CenterNo', old('CenterNo', $countData->CenterNo ?? ''), [ 'class' => 'form-control form-control-lg', 'placeholder' => 'Enter Center No', // 'required' => 'required', 'readonly' => !empty($countData->CenterNo) ? true : false, ]) !!} @error('CenterNo') {{ $message }} @enderror @if (isset($countData) && !empty($countData)) @php $j = 0 ; @endphp @for ($i = 1; $i <= 12; $i++) @if ($countData->{'D' . $i . 'Max'} >= 0 && $countData->{'D' . $i . 'Max'} != null ) @php $j++; @endphp {!! Form::label('D' . $i . 'Max', 'Day ' . $i . ' Max Count', [ 'class' => 'text-left form-label fw-bold labelName', ]) !!} {!! Form::text( 'D' . $i . 'Max', old( 'D' . $i . 'Max', isset($countData->{'D' . $i . 'Max'}) ? number_format($countData->{'D' . $i . 'Max'}, 0, '', '') : '', ), [ 'class' => 'form-control form-control-lg dmax', 'placeholder' => 'Enter Day 1 Max Count', 'onkeypress' => 'return blockSpecialChar(event, "numeric")', ], ) !!} @error('D' . $i . 'Max') {{ $message }} @enderror @if ($i == 1) @else @endif @endif @endfor @else {!! Form::label('D1Max', 'Day 1 Max Count', ['class' => 'text-left form-label fw-bold labelName']) !!} {!! Form::text( 'D1Max', old( 'D1Max', isset($countData->D1Max) && !empty($countData->D1Max) ? number_format($countData->D1Max, 0, '', '') : '', ), [ 'class' => 'form-control form-control-lg dmax', 'placeholder' => 'Enter Day 1 Max Count', 'onkeypress' => 'return blockSpecialChar(event, "numeric")', ], ) !!} @error('D1Max') {{ $message }} @enderror @endif Max Count Total Max Count {!! Form::submit('Submit', ['class' => 'btn btn-success text-white mt-2']) !!} {!! Form::close() !!} @endsection @section('script') @endsection