@extends('layouts.admin') @section('content')

Product Details

@csrf @method('PUT')
@php $latestActivePrice = $productPrices->where('is_active', 1)->sortByDesc('created_at')->first(); @endphp @if ($latestActivePrice) @endif

@if ($product->images) @foreach($product->images as $image) @if ($image->product_id === $product->id) Product Image @endif @endforeach @endif
@endsection