@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content')
@if (isset($status)) @endif

{{ trans('Import via excel file') }}

{{ csrf_field() }}
* @if ($errors->has('month'))
{{ $errors->first('month') }}
@endif
* @if ($errors->has('year'))
{{ $errors->first('year') }}
@endif
* @if ($errors->has('attachment'))
{{ $errors->first('attachment') }}
@endif
@if (isset($status['errors']) && count($status['errors']) > 0)

Below records were not uploaded. Please check and upload again.


@foreach ($status['errors'] as $error) @endforeach
{{ trans('common/common.row') }} {{ trans('employee/employee.reason') }} {{ trans('employee/employee.employee_code') }} {{ trans('common/common.errors') }}
{{ $error['row'] ?? '-' }} {{ $error['reason'] ?? '-' }} {{ is_array($error['data']['employee_code'] ?? null) ? implode(', ', $error['data']['employee_code']) : $error['data']['employee_code'] ?? '-' }} @foreach ($error['data'] as $field => $messages) @if (is_array($messages)) @foreach ($messages as $msg)

{{ ucfirst($field) }}: {{ $msg }}

@endforeach @else

{{ ucfirst($field) }}: {{ $messages }}

@endif @endforeach
@endif
{!! Form::close() !!} @endsection @push('footer-script') @endpush