@extends('backEnd.master') @section('title') @lang('fees.assign_fees_discount') @endsection @section('mainContent')

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'fees-discount-assign-search', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_studentA']) }}
@if(moduleStatusCheck('University')) @includeIf('university::common.session_faculty_depart_academic_semester_level',['hide'=>['USUB']]) @else
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
loader
@if ($errors->has('section')) {{ $errors->first('section') }} @endif
@if ($errors->has('category')) {{ $errors->first('category') }} @endif
@if ($errors->has('group')) {{ $errors->first('group') }} @endif
@endif
{{ Form::close() }}
@if(!empty($students)) {{ Form::open(['class' => 'form-horizontal', 'method' => 'POST', 'url' => 'fees-discount-assign-store'])}}

@lang('fees.assign_fees_discount')

@lang('fees.fees_discount') @lang('fees.amount')
{{$fees_discount->name}} {{$fees_discount->amount}}
@foreach($students as $student) @endforeach @if($students->count() > 0) @endif
0){ if(count($students) == count($pre_assigned)){ echo 'checked'; } } @endphp> @lang('student.student_name') @lang('student.admission_no') @lang('common.class') @lang('fees.fees_type') @lang('student.father_name') @lang('student.category') @lang('common.gender')
@php if ($fees_discount->type=='once') { $checkPayment=App\SmFeesDiscount::CheckAppliedDiscount($fees_discount_id,$student->id, $student->id); $show=''; if ($checkPayment=='false') { $show='disabled'; } } else { $checkPayment=App\SmFeesDiscount::CheckAppliedYearlyDiscount($fees_discount_id,$student->id, $student->id); $show=''; if ($checkPayment=='false') { $show='disabled'; } } @endphp student_id, $pre_assigned)? 'checked':''}} {{in_array($student->student_id, $already_paid)? 'disabled="disabled"':''}} > {{$student->studentDetail->full_name}} {{$student->studentDetail->admission_no}} {{$student->class != ""? @$student->class->class_name :""}} {{'('.$student->section!=""? $student->section->section_name:"".')' }} @php $check_discount_apply= DB::table('sm_fees_assign_discounts') ->where('student_id',$student->student_id) ->where('record_id',$student->id) ->where('fees_discount_id',$fees_discount_id) ->leftjoin('sm_fees_types','sm_fees_types.id','=','sm_fees_assign_discounts.fees_type_id') ->leftjoin('sm_fees_groups','sm_fees_groups.id','=','sm_fees_assign_discounts.fees_group_id') ->select('sm_fees_assign_discounts.*','sm_fees_groups.name as fees_group_name','sm_fees_types.name as fees_type_name') ->first(); $group_ids= array(); @endphp @if($fees_discount->type=='once') @if($check_discount_apply=='') @if ($errors->has('fees_master_id')) {{ $errors->first('fees_master_id') }} @endif @else @if ($errors->has('fees_master_id')) {{ $errors->first('fees_master_id') }} @endif @endif @else @php $group_ids= array(); @endphp @if ($check_discount_apply=='') @if ($errors->has('fees_master_id')) {{ $errors->first('fees_master_id') }} @endif @else {{-- {{$check_discount_apply->fees_group_id}} --}} @endif @endif {{$student->studentDetail->parents!=""?$student->studentDetail->parents->fathers_name:""}} {{$student->studentDetail->category!=""?$student->studentDetail->category->category_name:""}} {{$student->studentDetail->gender!=""?$student->studentDetail->gender->base_setup_name:""}}
{{ Form::close() }} @endif
@endsection @include('backEnd.partials.data_table_js')