@extends('layouts.dashboard') @section('title-content') {{ config('app.name') }} |Payment >> Create @endsection @section('content')

Add payment-create control number

@for ($y = 1; $y <= count($student_years); $y++) @php $coursesg1 = $srs->getCourses($student->reg_no, 1, $y); $student_data = $student_years->where('year_of_study', $y)->first(); if (empty($student_data)) { continue; } $check_stat = []; $total_credit = 0; $total_gpa = 0; $total_course = 0; $ma_gpa = collect(); @endphp @foreach ($coursesg1 as $item) @php $setup = $srs->getCoursesSetup($item->course_id, $item->batch_id); $view_info = $srs->getCoursesView($item->course_id, $student->reg_no); $total_cs_setup = $srs->getCoursesSetupTotal($item->course_id, $item->batch_id); $ma_gpa->add($view_info); $ma_gpa2 = collect(); $ma_gpa2->add($view_info); $gpy = 0; $gpy = $srs->getGPA($ma_gpa2, $student_gpa); try { $view_info2 = $srs->getCoursesRes($view_info->course_works_id); } catch (\Exception $e) { continue; } $total_credit = $total_credit + $item->unit; @endphp @endforeach @php $gps1 = $srs->getGPA($ma_gpa, $student_gpa); foreach ($gps1 as $key) { $gpasem1 = $key['gpa']; } @endphp @endfor @for ($y = 1; $y <= count($student_years); $y++) @php $coursesg2 = $srs->getCourses($student->reg_no, 2, $y); $student_data = $student_years->where('year_of_study', $y)->first(); if (empty($student_data)) { continue; } $check_stat = []; $total_credit = 0; $total_gpa = 0; $total_course = 0; $ma_gpa = collect(); @endphp @foreach ($coursesg2 as $item) @php $setup = $srs->getCoursesSetup($item->course_id, $item->batch_id); $view_info = $srs->getCoursesView($item->course_id, $student->reg_no); $total_cs_setup = $srs->getCoursesSetupTotal($item->course_id, $item->batch_id); $ma_gpa->add($view_info); $ma_gpa2 = collect(); $ma_gpa2->add($view_info); $gpy = 0; $gpy = $srs->getGPA($ma_gpa2, $student_gpa); try { $view_info2 = $srs->getCoursesRes($view_info->course_works_id); } catch (\Exception $e) { continue; } $total_credit = $total_credit + $item->unit; @endphp @endforeach @php $gps2 = $srs->getGPA($ma_gpa, $student_gpa); foreach ($gps2 as $key) { $gpasem2 = $key['gpa']; } @endphp @endfor

@lang('app.intro-text')

{!! Form::open(['route' => 'payment.store', 'class' => 'create-colleges', 'method' => 'POST', 'role' => 'form']) !!} @if ($program_type == 'Bachelor' || ($year_ID == 10))
@else
@endif
{{ Form::button('Submit', ['type' => 'submit', 'class' => 'btn btn-lg btn-success pull-right']) }}
{{ Form::close() }}
@endsection @section('scripts') @endsection