@extends('admin.admin-layout') @section('content')
@if (session('success')) @endif @if (session('error')) @endif
@csrf

Edit Product Information

← Back
Size :
@php $selectedSizes = explode(',', $product->size); @endphp @foreach ($sizes as $size) size, $selectedSizes) ? 'checked' : '' }}> @endforeach
Colors :
@php $selectedColor = explode(',', $product->availabel_color); @endphp @foreach ($colors as $color) id, $selectedColor) ? 'checked' : '' }} > @endforeach
@php $selectedColorIds = explode(',', $product->availabel_color); @endphp
Product Images by Color
@foreach($colors as $color) @if(in_array($color->id, $selectedColorIds)) @php $colorImages = $product->images->where('color_id', $color->id); @endphp
@forelse($colorImages as $img)
Color Image
@empty
No images uploaded for this color
@endforelse
@endif @endforeach
Product Image Preview
@error('product_video')
{{ $message }}
@enderror
@if ($product->product_video && \Storage::disk('public')->exists($product->product_video)) @else
No video available
@endif

Pricing Details

@endsection