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

Blacklist Import

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

@if (!empty($data)) @php $error_array = array() @endphp @foreach ($data as $key => $new_data) @if (BlacklistController::check_curriculum(trim($new_data->student_curriculum)) == 0) @php $error_array[] = 'Check the name of curriculum (Short name).' @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
    {{ ++$key }} {{ $new_data->student_code }} {{ $new_data->student_firstname }} {{ $new_data->student_lastname }} @if (BlacklistController::check_curriculum(trim($new_data->student_curriculum)) == 0) {{ $new_data->student_curriculum }} @else {{ $new_data->student_curriculum }} @endif {{ $new_data->student_status }}
    @endif
    @include('layouts.footer') @endsection