@extends('layouts.adminlayout') @section('content')
Product Import
@include('admin.partials.flash_messages')

Import Product

{{ @csrf_field() }}
@error('file') {{ $message }} @enderror

@if(isset($importFile) && $importFile) @foreach($importFile as $key => $file)

{{ isset($file['file_name']) && $file['file_name'] ? $file['file_name'] : '' }}

{{ isset($file['created']) && $file['created'] ? _dt($file['created']) : '' }} isset($file['id']) && $file['id'] ? $file['id'] : 'id' ])}}>
@php if(isset($file['errors']) && $file['errors']) { $errors = json_decode($file['errors'],true); } @endphp @if(isset($errors) && $errors)
@foreach($errors as $k => $v) @if(!empty($v))

    @if(isset($v) && $v) @foreach($v as $e)
  • {{ is_array($e) ? join(',',$e) : $e }}
  • @endforeach @endif
@endif @endforeach
@endif
{{ $file['fail_rows'] }} records has errors
{{ $file['success_rows'] }} records has success
{{ $file['total_rows'] }} total records
@if($file['fail_rows']) Export Failed rows @endif @if($file['success_rows']) @if($file['imported'] == 1) @else @endif @endif
@endforeach @endif
@endsection