@extends('layouts.app') @section('content')
{{ __('Edit Product') }}
@csrf @method('PUT')
@error('short_description')

{{ $message }}

@enderror
{!! old('description') ?? $product->description !!}
@error('description')

{{ $message }}

@enderror
{{ __('Generale Information') }}
@error('category')

{{ $message }}

@enderror
@error('sub_category')

{{ $message }}

@enderror
@foreach ($brands as $brand) @endforeach
@foreach ($units as $unit) @endforeach
@error('code')

{{ $message }}

@enderror
{{ __('Price Information') }}
@foreach ($taxs as $tax) @endforeach
colors->isEmpty()) style="display: none" @endif>

{{ __('Color wise extra price') }}

@php $productPrice = $product->discount_price > 0 ? $product->discount_price : $product->price; @endphp @foreach ($product->colors as $color) @endforeach
{{ __('Name') }} {{ __('Extra Price') }} {{ __('Action') }}

{{ $color->name }}

{{ $productPrice }}
sizes->isEmpty()) style="display: none" @endif>

{{ __('Size wise extra price') }}

@foreach ($product->sizes as $size) @endforeach
{{ __('Size') }} {{ __('Extra Price') }} {{ __('Action') }}

{{ $size->name }}

{{ $productPrice }}
{{ __('Thumbnail') }} (Ratio 1:1 (500 x 500 px)) *
@error('thumbnail')

{{ $message }}

@enderror
{{ __('Additional Thumbnail') }} (Ratio 1:1 (500 x 500 px)) *
@error('additionThumbnail')

{{ $message }}

@enderror
@foreach ($product->medias as $media) @php $source = asset('defualt/upload.png'); if (Storage::exists($media->src)) { $source = Storage::url($media->src); } @endphp @endforeach
@endsection @push('css') @endpush @push('scripts') @endpush