@extends('layouts.admin') @section('section-label', 'Gestão') @section('title', $mode === 'edit' ? 'Editar Imóvel' : 'Novo Imóvel') @section('content') @php $isEdit = $mode === 'edit'; $checkedOpps = collect(old('oportunidades', $property->oportunidades ?? []))->all(); $planRows = collect( old( 'plans', ($property->plans ?? collect())->map(fn($plan) => [ 'id' => $plan->id, 'title' => $plan->title, 'url' => $plan->url, ])->toArray() ) )->values(); @endphp
Gerenciar