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

{{ $message }}

@enderror
@hasPermission('shop.product.generate.AI.data') @endhasPermission
{!! old('description') ?? $product->description !!}
@error('description')

{{ $message }}

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

{{ $message }}

@enderror
@error('sub_category')

{{ $message }}

@enderror
@foreach ($brands as $brand) @endforeach
@if ($product->is_digital == false)
@foreach ($units as $unit) @endforeach
@endif
@error('code')

{{ $message }}

@enderror
{{ __('Digital Product Attachments (Downloadable)') }}
{{ __('Digital Additional Documents') }}
@error('digitalAttachment')

{{ $message }}

@enderror
{{-- new attachment --}}
@foreach ($product->attachments as $attachment) @php $source = asset('default/upload.png'); if (Storage::exists($attachment->src)) { $source = getFileImages($attachment); } @endphp @endforeach
@if ($product->licenses->count() >= 1) @foreach ($product->licenses as $license)
X
@endforeach @else
@endif
@error('license_key')

{{ $message }}

@enderror
{{ __('Price Information') }}
@if ($product->is_digital == false)
@endif
@if ($product->is_digital == false)
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 }}
@endif
{{ __('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('default/upload.png'); if (Storage::exists($media->src)) { $source = Storage::url($media->src); } @endphp @endforeach
{{ __('Upload or Add Product Video') }}
{{ __('Supported formats: MP4, AVI, MOV, WMV') }}
{{ __('Paste a valid YouTube video embed code') }}
{{ __('Paste a valid Vimeo video embed code') }}
{{ __('Paste a valid Dailymotion video embed code') }}
@error('uploadVideo.file')

{{ $message }}

@enderror
{{ __('SEO Information') }}
@error('meta_description')

{{ $message }}

@enderror
@lang('Write keywords and Press enter to add new one') @error('meta_keywords')

{{ $message }}

@enderror
@endsection @push('css') @endpush @push('scripts') {{-- digital product attachments --}} @endpush