@extends('layouts.admin') @section('title', 'Edit Supermarket') @section('head') @endsection @section('content')

Edit Supermarket

Update {{ $supermarket->name }} information

Back to Supermarkets
Supermarket Information
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('user_id')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('address')
{{ $message }}
@enderror
Click on the map to update the exact location.
@error('latitude')
{{ $message }}
@enderror
@error('longitude')
{{ $message }}
@enderror
@error('phone')
{{ $message }}
@enderror
@error('email')
{{ $message }}
@enderror
@error('website')
{{ $message }}
@enderror
Supported formats: JPG, PNG, GIF. Max size: 2MB
@if($supermarket->logo) Current Logo @endif @error('logo')
{{ $message }}
@enderror
Wide format recommended (1200x400px). Max size: 5MB
@if($supermarket->cover_image) Current Cover @endif @error('cover_image')
{{ $message }}
@enderror
Supermarket Details
@error('store_size')
{{ $message }}
@enderror
@error('total_aisles')
{{ $message }}
@enderror
@error('parking_spaces')
{{ $message }}
@enderror
@error('opening_time')
{{ $message }}
@enderror
@error('closing_time')
{{ $message }}
@enderror
supermarketDetail->open_24_hours ?? false) ? 'checked' : '' }}>
supermarketDetail->delivery_available ?? false) ? 'checked' : '' }}>
supermarketDetail->has_parking ?? false) ? 'checked' : '' }}>
supermarketDetail->online_shopping_available ?? false) ? 'checked' : '' }}>
@error('delivery_radius')
{{ $message }}
@enderror
@error('delivery_fee')
{{ $message }}
@enderror
@error('contact_manager')
{{ $message }}
@enderror
@error('customer_service_phone')
{{ $message }}
@enderror
@php $currentFacilities = old('facilities', isset($supermarket->supermarketDetail->available_facilities) ? json_decode($supermarket->supermarketDetail->available_facilities, true) : []); $allFacilities = ['pharmacy', 'bakery', 'deli', 'meat_department', 'seafood', 'florist', 'atm', 'cafe']; @endphp
@php $currentPayments = old('payment_methods', isset($supermarket->supermarketDetail->accepted_payment_methods) ? json_decode($supermarket->supermarketDetail->accepted_payment_methods, true) : ['cash', 'card']); @endphp
Cancel
Quick Guide
Supermarket Settings
  • Location: Update coordinates using the map
  • Store Size: Choose appropriate size category
  • Services: Update delivery and parking options
  • Facilities: Mark all departments available in store
Required Fields

All fields marked with * are required. Make sure to provide accurate contact information.

Image Guidelines
  • Logo: Square format (300x300px min)
  • Cover: Wide format (1200x400px recommended)
  • • High resolution, professional images
  • • Logo max: 2MB, Cover max: 5MB
Tip: Click on the map to update exact location coordinates.
@endsection @section('scripts') @endsection