@extends('admin.layouts.master') @section('content')
{{ trans('app.notice') }} {{ trans('messages.import_ignored') }}

{{ trans('app.import_failed') }}

@can('create', \App\Models\Product::class) {{ trans('app.bulk_import') }} @endcan
@foreach ($failed_rows as $row) @endforeach
{{ trans('app.image') }} {{ trans('app.title') }} {{ trans('app.quantity') }} {{ trans('app.price') }} {{ trans('app.variants') }} {{ trans('app.listing') }} {{ trans('app.reason') }}
@php $image_links = explode(',', $row['data']['image_links']); @endphp {{ $row['data']['title'] }}
{{ trans('app.slug') }}: {{ $row['data']['slug'] ?? convertToSlugString($row['data']['title'], $row['data']['sku']) }}
{{ $row['data']['stock_quantity'] }} @if ($row['data']['offer_price'])
{{ get_formated_currency($row['data']['offer_price'], 2, config('system_settings.currency.id')) }} {{ get_formated_currency($row['data']['price'], 2, config('system_settings.currency.id')) }}
@else {{ get_formated_currency($row['data']['price'], 2, config('system_settings.currency.id')) }} @endif
@php $variants = array_filter( $row, function ($key) { return strpos($key, 'option_name_') === 0; }, ARRAY_FILTER_USE_KEY, ); @endphp
@foreach ($variants as $index => $variant) @if ($row['data']['option_name_' . ($index + 1)] && $row['data']['option_value_' . ($index + 1)])
{{ $row['data']['option_name_' . ($index + 1)] }}:
{{ $row['data']['option_value_' . ($index + 1)] }}
@endif @endforeach
{{ trans('app.sku') }}:
{{ $row['data']['sku'] }}
{{ trans('app.condition') }}:
{{ $row['data']['condition'] }}
{{ trans('app.gtin') }}:
{{ $row['data']['gtin_type'] . ' ' . $row['data']['gtin'] }}
@if (isset($row['data']['available_from']))
{{ trans('app.available_from') }}:
{{ $row['data']['available_from'] }}
@endif
{{ trans('app.min_order_quantity') }}:
{{ $row['data']['min_order_quantity'] ? $row['data']['min_order_quantity'] : 1 }}
{{ trans('app.free_shipping') }}:
@if ($row['data']['offer_starts'])
{{ trans('app.offer_starts') }}:
{{ $row['data']['offer_starts'] }}
@endif @if ($row['data']['offer_ends'])
{{ trans('app.offer_ends') }}:
{{ $row['data']['offer_ends'] }}
@endif
{{ trans('app.active') }}:
{{ $row['reason'] }}
@endsection