@php use App\Http\Controllers\StudentController; @endphp @extends('layouts.master') @section('title', 'Student Import') @section('style') @endsection @section('script') @endsection @section('content') @include('layouts.header')

Student Import

{{--

Hello! This is Sandbox

--}}
Student Import
{{-- Add --}}
{{ csrf_field() }}
File Import :
(.xlsx only)

@if (!empty($data)) @php $error_array = array() @endphp @foreach ($data as $key => $new_data) @if($new_data->student_curriculum == '') @else @if (StudentController::check_curriculum(trim($new_data->student_curriculum)) == 0) @php $error_array[] = 'Check the name of curriculum (Short name).' @endphp @endif @endif {{-- @if (StudentController::check_student_id(trim($new_data->student_code)) == 1) @php $error_array[] = 'Check ID 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) @endforeach @endif
    No. Student ID Name Curriculum Status Degree Blacklist
    {{ ++$key }} {{-- @if (StudentController::check_student_id(trim($new_data->student_code)) == 1) {{ $new_data->student_code }} @else --}} {{ $new_data->student_code }} {{-- @endif --}} {{ $new_data->student_firstname }} {{ $new_data->student_lastname }} @if (StudentController::check_curriculum(trim($new_data->student_curriculum)) == 0) {{ $new_data->student_curriculum }} @else {{ $new_data->student_curriculum }} @endif {{ $new_data->student_status }} {{ $new_data->student_degree }} {{ $new_data->student_blacklist }}
    @endif
    @include('layouts.footer') @endsection