@extends('layouts.admin') @section('title', 'Edit Product') @section('header', 'Edit Product') @section('content') @php $isInstaKart = $serviceType === 'grocery'; $currencySymbol = App\Models\AppSetting::sanitizedCurrencySymbol(); $imageUrl = $product->image ? App\Services\MediaStorage::url($product->image) : null; @endphp

{{ $product->name }}

{{ $product->restaurant?->name }} ยท {{ $isInstaKart ? 'InstaKart product' : 'Food menu item' }}
Back
@if($errors->any())
Please fix the highlighted fields.
@endif
@csrf @method('PUT')
Product details
@error('name')
{{ $message }}
@enderror
@if($isInstaKart)
@endif
@if($isInstaKart)
@else
@endif
Pricing and availability
{{ $currencySymbol }}
{{ $currencySymbol }}
@if($isInstaKart)
@else
@endif
is_available))>
@if($isInstaKart)
track_inventory))>
@endif
Product image
@if($imageUrl){{ $product->name }}@else@endif
JPG, PNG or WebP. Maximum 2 MB.

@endsection