@extends('dashboard.layout.partials.dashboard') @section('content')
@if ($errors->any())
@endif


Edit Products

@csrf() @method('PUT')
@php $lastData = App\Models\ProductCode::where('product_id', $product->id)->orderBy('id', 'desc')->first(); @endphp
@php $images=$product->product_image; if($images){ $images=json_decode($images); } $current_url = "http" . (isset($_SERVER['HTTPS']) ? "s" : "") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $parsed_url = parse_url($current_url); $base_url = $parsed_url['scheme'] . '://' . $parsed_url['host']; @endphp @if($product->product_image) @foreach($images as $image) @endforeach @endif
Cancel
@endsection