@extends('adminlte::page') @section('plugins.Sweetalert2', true) @section('plugins.Select1', true) @section('plugins.icheck', true) @section('title', 'Crear Contrato | Guiñez Ingeniería') @section('content_header')
@stop @section('content')

Nuevo Contrato

@csrf
@if ($errors->any()) @error('numero_contrato')
{{ $message }}
@enderror @endif
@if (old('proyectos') != null) @if (count(old('proyectos')) == count($proyectos))
@else
@endif @else
@endif
@foreach ($proyectos as $proyecto) @if (old('proyectos') != null) @php $proyectoOldSeleccionado = false; foreach (old('proyectos') as $proyectoOld) { if ($proyecto->id == $proyectoOld) { $proyectoOldSeleccionado = true; } } @endphp @if ($proyectoOldSeleccionado == true)
@else
@endif @else
@endif @endforeach
@if (Gate::check('contrato.edit-recursos'))
Recursos
# Tipo Recurso Nombre del Recurso Unidad de Medición Descripción Acción
No hay recursos disponibles en la tabla
@endif
@if ($errors->any()) @error('descripcion')
{{ $message }}
@enderror @endif
@if ($errors->any()) @error('id_empresa')
{{ $message }}
@enderror @endif
@if ($errors->any()) @error('id_admin_contrato_cliente')
{{ $message }}
@enderror @endif
@if ($errors->any()) @error('id_admin_contrato_contratista')
{{ $message }}
@enderror @endif
@if ($errors->any()) @error('tolerancia_norte')
{{ $message }}
@enderror @endif
@if ($errors->any()) @error('tolerancia_este')
{{ $message }}
@enderror @endif
@if ($errors->any()) @error('tolerancia_cota')
{{ $message }}
@enderror @endif
@if ($errors->any()) @error('fecha_inicio')
{{ $message }}
@enderror @endif
@if ($errors->any()) @error('fecha_termino')
{{ $message }}
@enderror @endif
@if ($errors->any()) @error('estado')
{{ $message }}
@enderror @endif
@if ($errors->any()) @error('observacion')
{{ $message }}
@enderror @endif
@stop @section('css') @stop @section('js') @if (Gate::check('contrato.edit-recursos')) @else @endif @if (session('alerta') != null) @endif @stop