@extends('material.layouts.dashboard')
@push('styles')
@endpush
@section('page-title', 'Planes de mejoramiento')
@section('page-description', 'ver, crear, modificar y eliminar planes de mejoramiento')
@section('content')
@component('themes.bootstrap.components.portlet', ['icon' => 'fa fa-building-o', 'title' => 'Planes de mejoramiento institucionales'])
{{-- Datatable --}}
@component('themes.bootstrap.components.datatable', ['id' => 'planes-table-institucional'])
@slot('columns', ['', '#', 'Plan de mejoramiento', 'Tipo', 'Origen', 'Vigencia', 'Fecha inicio', 'Fecha fin'])
@endcomponent
@component('themes.bootstrap.components.modal-large', ['id' => 'modal-form', 'class'=>'modalAñadirPlan', 'icon'=>'icon-settings font-green-haze','title' => 'Plan de mejoramiento'])
@slot('body')
{!! Form::open(['role' => 'form', 'id' => 'form-plan', 'novalidate' => 'novalidate', 'method' => 'POST', 'url' => route('store_plan')]) !!}
{!!Form::select('vc_tipo',['Por Proceso' => 'Por Proceso', 'Institucional' => 'Institucional', 'Auditoria Externa' => 'Auditoria Externa'], null,['class'=>'form-control selectpicker','title'=>'Seleccione el tipo','id'=>'vc_tipo'])!!}
{!!Form::select('vc_ente',['Contraloria' => 'Contraloria', 'Personeria' => 'Personeria', 'Veeduría' => 'Veeduría', 'Procuraduria' => 'Procuraduria'], null,['class'=>'form-control selectpicker','title'=>'Seleccione el Ente','id'=>'vc_ente'])!!}
{!! Form::date('dt_fecha_inicio', '', ['class' => 'form-control','label' => 'Fecha inicio','id' => 'dt_fecha_inicio']) !!}
{!! Form::date('dt_fecha_fin','', ['class' => 'form-control','label' => 'Fecha fin','id' => 'dt_fecha_fin']) !!}
{!!Form::select('i_fk_id_proceso[]', $procesos, null,['class'=>'form-control selectpicker','title'=>'Seleccione el proceso', 'multiple'=> 'multiple', 'data-live-search'=>'true', 'data-size'=>'5', 'id'=>'i_fk_id_proceso'])!!}
{!!Form::select('i_fk_id_dependencia[]',$areas, null,['class'=>'form-control selectpicker','title'=>'Seleccione el area','multiple'=>'multiple', 'data-live-search'=>'true', 'data-size'=>'5', 'id'=>'i_fk_id_dependencia'])!!}
{!!Form::select('i_vigencia',['2011' => '2011','2012' => '2012','2013' => '2013','2014' => '2014','2015' => '2015','2016' => '2016','2017' => '2017','2018' => '2018','2019' => '2019','2020' => '2020','2021' => '2021','2022' => '2022'], null,['class'=>'form-control selectpicker','title'=>'Seleccione la vigencia','id'=>'i_vigencia'])!!}
{!!Form::select('vc_origen_plan',$origen_planes, null,['class'=>'form-control selectpicker','title'=>'Seleccione el origen', 'data-size'=>'5', 'id'=>'vc_origen_plan'])!!}
{{ Form::button('Cancelar', ['class' => 'btn red', 'data-dismiss' =>"modal", 'id' => 'btn_cancel']) }}
{{ Form::button('Guardar', ['class' => 'btn green', 'id' => 'btn_save']) }}
{!! Form::close() !!}
@endslot
@slot('footer')
@endslot
@endcomponent
@endcomponent
@component('themes.bootstrap.components.portlet', ['icon' => 'fa fa-building-o', 'title' => 'Planes de mejoramiento de proceso'])
{{-- Datatable --}}
@component('themes.bootstrap.components.datatable', ['id' => 'planes-table-proceso'])
@slot('columns', ['', '#', 'Plan de mejoramiento', 'Tipo', 'Origen', 'Vigencia', 'Fecha inicio', 'Fecha fin'])
@endcomponent
@endcomponent
@component('themes.bootstrap.components.portlet', ['icon' => 'fa fa-building-o', 'title' => 'Planes de mejoramiento de auditoria externa'])
{{-- Datatable --}}
@component('themes.bootstrap.components.datatable', ['id' => 'planes-table-externa'])
@slot('columns', ['', '#', 'Plan de mejoramiento', 'Tipo', 'Ente', 'Origen', 'Vigencia', 'Fecha inicio', 'Fecha fin'])
@endcomponent
@endcomponent
@endsection
@push('functions')
@endpush
@push('functions')
@endpush