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

Editar: {{ $empresa->name }}

@stop @section('content')
@csrf @method('PUT')
{{-- TAB 1: GENERAL --}}
@if(auth()->user()->isAdmin())
@endif
{{-- TAB 2: UBICACIÓN Y CONTACTO --}}
{{-- TAB 3: TAXONOMÍAS --}}
@php $relSel = $empresa->relacion_planes ? explode(',', $empresa->relacion_planes) : []; $planesMap = $planes->pluck('name', 'wp_id')->toArray(); @endphp
@if(empty($relSel)) (Ninguno) @else @foreach($relSel as $wpid) @php $label = $planesMap[$wpid] ?? $wpid; @endphp {{ $label }} @endforeach @endif
@php $relExpSel = $empresa->relacion_experiencias ? explode(',', $empresa->relacion_experiencias) : []; $experMap = $experiencias->pluck('name', 'wp_id')->toArray(); @endphp
@if(empty($relExpSel)) (Ninguna) @else @foreach($relExpSel as $wpid) @php $label = $experMap[$wpid] ?? $wpid; @endphp {{ $label }} @endforeach @endif
{{-- TAB 4: MULTIMEDIA --}}
{{-- Imagen Principal --}}
@php $imgPrincipal = $empresa->archivos()->where('file_type', 'image')->first(); @endphp @if($imgPrincipal)
@endif
{{-- PDF Accesibilidad --}} {{-- Galería --}}
@foreach($empresa->archivos()->where('file_type', 'gallery')->get() as $foto)
@endforeach
@if(auth()->user() && auth()->user()->isAdmin())
Proyectos / Adhesiones

Selecciona las adhesiones a las que pertenece esta empresa y sube el documento correspondiente para cada una.

    @foreach($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