@extends('base') @section('title', $property->exists ? 'Editer un appartement': 'Créer un appartement') @section('content')

@yield('title')

@csrf @method($apartment->exists ? 'put' : 'post') @include('admin.properties.propertyform')
@include('shared.input', ['class' => 'col-md-3', 'label' => 'Numéro étage', 'name' => 'floor_number', 'value' => old('floor_number', $apartment->floor_number)]) @include('shared.input', ['class' => 'col-md-3', 'label' => 'Étages total de l’immeuble', 'name' => 'total_floors', 'value' => old('total_floors', $apartment->total_floors)])
@include('shared.input', ['class' => 'col-md-3', 'label' => 'Parking / garage', 'name' => 'parking', 'type' => 'checkbox', 'value' => old('parking', $apartment->parking)])
@include('shared.input', ['class' => 'col-md-3', 'label' => 'Cave', 'name' => 'cellar', 'type' => 'checkbox', 'value' => 1, 'checked' => old('cellar', $apartment->cellar)]) @include('shared.input', ['class' => 'col-md-3', 'label' => 'Charges de copropriété par an', 'name' => 'co_ownership_charges_per_year', 'value' => old('co_ownership_charges_per_year', $apartment->co_ownership_charges_per_year)]) @include('shared.input', ['class' => 'col-md-3', 'label' => 'Nombre de lots dans la copropriété', 'name' => 'condominium_lots', 'value' => old('condominium_lots', $apartment->condominium_lots)])
@if ($property->photos) @endif @if ($errors->any())
@endif @endsection