@extends('backend.layout') @section('backend_css') @endsection @section('backend_content')
{{-- ══ Header ══ --}}

Edit Shop: {{ $shop->name }}

Update shop details
Back
{{-- ══ Edit Form ══ --}}
@csrf @method('PUT')
Upload a new logo image (JPEG, PNG, JPG, GIF, WebP — max 2MB). Leave empty to keep current logo.
@if ($shop->logo) {{ $shop->name }} @else
No logo uploaded
@endif
Searching...
Search any existing user and click Add to assign them as staff for this shop. Selected users will automatically receive the shop-staff role.
Selected Staff
{{ $shop->users->count() }} Assigned
@foreach ($shop->users as $user) {{ $user->name }} ({{ $user->email }}) @endforeach @foreach ($shop->users as $user) @endforeach
No staff selected yet. Search and add users above.
Search and select users who will be associated with this shop as staff
Cancel
@php $initialUsersForJs = $shop->users ->map(function ($user) { return [ 'id' => $user->id, 'name' => $user->name, 'email' => $user->email, ]; }) ->values(); @endphp @endsection