@extends('admin/layout') @section('page_title','Manage Product') @section('product_select','active') @section('container') @if($id>0) @php $image_required=""; @endphp @else @php $image_required="required"; @endphp @endif

Manage Product

@if(session()->has('sku_error'))
{{session('sku_error')}}
@endif @error('attr_image.*')
{{$message}}
@enderror @error('images.*')
{{$message}}
@enderror
@csrf
@error('name') @enderror
@error('slug') @enderror
@error('image') @enderror @if($image!='') @endif

Product Images

@php $loop_count_num=1; @endphp @foreach($productImagesArr as $key=>$val) @php $loop_count_prev=$loop_count_num; $pIArr=(array)$val; @endphp
@if($pIArr['images']!='') @endif
@if($loop_count_num==2) @else @endif
@endforeach

Product Attributes

@php $loop_count_num=1; @endphp @foreach($productAttrArr as $key=>$val) @php $loop_count_prev=$loop_count_num; $pAArr=(array)$val; @endphp
@if($pAArr['attr_image']!='') @endif
@if($loop_count_num==2) @else @endif
@endforeach
@endsection