@php // use App\Http\Controllers\StudentController; use App\Http\Controllers\Import_data_installmentsController; // use App\Controllers\Import_dataController; @endphp @extends('layouts.master') @section('title', 'Import > Completed Repayment (Installments)') @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.header') @include('layouts.title')
Import > Completed Repayment (Installments)
{{-- Add --}}
{{ csrf_field() }}
File Import :
(.xlsx only)

@if (!empty($data)) @php $error_array = array() @endphp @foreach ($data as $key => $new_data) @if (Import_data_installmentsController::check_student_code(trim($new_data->student_code)) == 0) @php $error_array[] = 'Check the number of Student ID.' @endphp @endif @endforeach @if (count($error_array) == 0) @else

@php $error_array = array_unique($error_array) @endphp @foreach ($error_array as $error)
  • {{ $error }}
  • @endforeach @endif @endif

    @if (isset($show))
    {{-- --}} {{-- --}} @if (!empty($data)) @foreach ($data as $key => $new_data) @php $name = DB::table('student_list') ->where('student_code',$new_data->student_code) ->first(); @endphp @if($name) @else @endif {{-- --}} {{-- --}} @endforeach @endif
    No. Student ID NameSchool Advisor Degree Academic Status Type Agreement No. Agreement DateOutstanding Balance (Baht)Receipt No. Receipt Date Amount (Baht) Remark
    {{ ++$key }} @if (Import_data_installmentsController::check_student_code(trim($new_data->student_code)) == 0) {{ $new_data->student_code }} @else {{ $new_data->student_code }} @endif {{ $name->student_firstname }} {{ $name->student_lastname }}{{ $new_data->student_firstname }} {{ $new_data->student_lastname }}{{ $new_data->student_school }} {{ $new_data->student_advisor }} {{ $new_data->student_degree }} {{ $new_data->student_academicstatus }} {{ $new_data->student_type }} {{ $new_data->student_agreementno }} {{ $new_data->student_agreementdate }}{{ $new_data->student_outstandingbalance }}{{ $new_data->student_receiptno }} {{ $new_data->student_receiptdate }} {{ $new_data->student_amount }} {{ $new_data->student_remark }}
    @endif
    @include('layouts.footer') @endsection