@extends('layouts.owner') @section('title', 'Editar Negócio — Lined') @section('page-title', 'Editar Negócio') @section('page-subtitle', 'Dados da empresa e do negócio') @section('content') @if (session('error'))
{{ session('error') }}
@endif
@csrf
{{-- ── Coluna principal ── --}}
{{-- Empresa --}}

Informações da empresa

@error('name_company'){{ $message }}@enderror
@error('company_email'){{ $message }}@enderror
@php $logoVal = old('logo', $company->logo ?? ''); @endphp
Logo
{{-- Negócio --}}

Informações do negócio

@error('branch_name'){{ $message }}@enderror
{{-- CEP --}}
{{-- Estado --}}
{{-- Cidade --}}
{{-- Bairro --}}
{{-- Rua --}}
{{-- Número --}}
{{-- Complemento --}}
{{-- Endereço completo --}}
{{ old('branch_address', $branch->address ?? '') ?: '—' }}
{{-- Mapa --}}
Clique ou arraste o marcador para ajustar
Lat: {{ old('branch_latitude', $branch->latitude ?? '—') }} Lng: {{ old('branch_longitude', $branch->longitude ?? '—') }}
{{-- Categorias de serviços --}}
@php $currentCategories = collect($categories)->pluck('idcategory')->map(fn($id) => (int) $id)->all(); @endphp
{{-- ── Coluna lateral ── --}}
{{-- Imagens do negócio --}}

Imagens do negócio

@php $branchLogoVal = old('branch_logo', $branch->logo ?? ''); @endphp
Logo
@php $bgVal = old('branch_background_photo', $branch->background_photo ?? ''); @endphp
Fundo
{{-- Ações --}}

Ações

Cancelar
{{-- Modal de recorte --}} @endsection @push('scripts') @endpush