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

Editar: {{ $restaurante->name }}

@stop @section('content')
@csrf @method('PUT')
{{-- TAB 1: GENERAL --}}
@if(auth()->user()->isAdmin())
@endif
{{-- TAB 2: UBICACIÓN --}}
{{-- TAB 3: HORARIOS --}}
@foreach(['lunes', 'martes', 'miercoles', 'jueves', 'viernes', 'sabado', 'domingo'] as $dia)
@php $campoDia = 'horario_'.$dia; @endphp
@endforeach
{{-- TAB 4: SERVICIOS Y TAXONOMÍAS --}}
{{-- TAB 5: MULTIMEDIA --}}
{{-- Imagen Principal --}}
@php $imgPrincipal = $restaurante->archivos()->where('file_type', 'image')->first(); @endphp @if($imgPrincipal)
@endif
{{-- PDF Accesibilidad --}} {{-- Galería --}}
@include('components.descripcion_galeria')
@foreach($restaurante->archivos()->where('file_type', 'gallery')->get() as $foto)
@endforeach
@if(auth()->user() && auth()->user()->isAdmin()) {{-- TAB: PROYECTOS (solo admin) --}}
Proyectos / Adhesiones

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

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