@extends('adminlte::page') @section('title', 'Editar Alojamiento') @section('css') @stop @section('content_header')
@include('components.alerts')
@include('components.breadcrumbs', ['items' => ['Alojamientos' => 'alojamientos', 'Editar' => 'active']])

Editar: {{ $alojamiento->name }}

@stop @section('content')
@csrf @method('PUT')
{{-- TAB 1: GENERAL --}}
@if(auth()->user()->isAdmin())
@endif
{{-- TAB 2: UBICACIÓN --}}
{{-- TAB 3: SERVICIOS --}}
{{-- TAB 4: MULTIMEDIA (Actualizado para resource_files) --}}
{{-- Imagen Principal --}}
@php $imgPrincipal = $alojamiento->imagenPrincipal(); @endphp @if($imgPrincipal)
@endif
{{-- Galería --}}
@include('components.descripcion_galeria')
@if(auth()->user() && auth()->user()->isAdmin()) {{-- TAB 5: PROYECTOS (solo admin) --}}
Proyectos / Adhesiones

Selecciona las adhesiones a las que pertenece este alojamiento y sube el documento correspondiente para cada una.

    @foreach($alojamiento->proyectos as $proy) @php $tax = $adhesiones->firstWhere('wp_id', $proy->adhesion); @endphp
  • {{ $tax ? $tax->name : $proy->adhesion }} @if($proy->documento) Ver documento actual @endif {{ $proy->active ? 'Activo' : 'Inactivo' }}
  • @endforeach @section('js') @parent @stop
@endif
@stop @section('js') @stop