@extends('adminlte::page') @section('title', 'Editar Productor/Artesano') @section('css') @stop @section('content_header')
@include('components.breadcrumbs', ['items' => ['Productores' => 'productores', 'Editar' => 'active']])

Editar Productor/Artesano: {{ $productor->name }}

@stop @section('content')
@include('components.alerts')
@csrf @method('PUT')
{{-- TAB 1: GENERAL --}}
@if(auth()->user()->isAdmin())
@endif
{{-- TAB 2: UBICACIÓN Y CONTACTO --}}
{{-- TAB 3: DETALLE PRODUCTO --}}
{{-- TAB 4: EXPERIENCIA --}} {{-- TAB 5: TAXONOMÍAS Y MULTIMEDIA --}}
{{-- Imagen Principal Actual --}}
@php $imgPrincipal = $productor->archivos()->where('file_type', 'image')->first(); @endphp @if($imgPrincipal)
@endif
{{-- Galería Actual --}}
@foreach($productor->archivos()->where('file_type', 'gallery')->get() as $foto)
@endforeach
@include('components.descripcion_galeria')
@if(auth()->user() && auth()->user()->isAdmin())
Proyectos / Adhesiones

Selecciona las adhesiones a las que pertenece este productor 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