@extends('admin.layout') @section('title', 'Artwork Bulk Upload') @section('content')

Artwork Bulk Upload

Upload artworks with XLSX or CSV, auto-create or update by painting code, and review failed rows.

@if ($errors->any())
@endif
@csrf
@if (!empty($summary))
Import Summary
@if (!empty($rowErrors) && !empty($errorToken)) Download Error Excel @endif
Total Rows
{{ $summary['total_rows'] ?? 0 }}
Created
{{ $summary['created'] ?? 0 }}
Updated
{{ $summary['updated'] ?? 0 }}
Failed
{{ $summary['failed'] ?? 0 }}
@endif @if (!empty($rowErrors))
Failed Rows
@foreach ($rowErrors as $errorRow) @endforeach
Row Title Painting Code Artist Status Reason
{{ $errorRow['row'] ?? '-' }} {{ $errorRow['title'] ?? '-' }} {{ $errorRow['painting_code'] ?? '-' }} {{ $errorRow['artist_name'] ?? '-' }} {{ $errorRow['status'] ?? '-' }} {{ $errorRow['reason'] ?? '-' }}
@endif
@endsection