@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content') @section('content')
{{ csrf_field() }}

{{ trans('master/master.import_category_via_excel_file') }}

@if(session('errors') && $errors->has('rows')) @php $failures = $errors->get('rows')[0]; $failures = json_decode($failures, true); @endphp
Import Errors:
@foreach ($failures as $index => $failure) @endforeach
SN. Row Field Error Message
{{ $index + 1 }} {{ $failure['row'] }} {{ $failure['attribute'] }} {!! implode('
', $failure['errors']) !!} {{-- Convert array to string properly --}}
@endif
{!! Form::close() !!} @endsection @push('footer-script') @endpush