<html>
<head>
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <meta name="viewport" content="width=device-width, user-scalable=no">

    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"  crossorigin="anonymous">
    <link rel="stylesheet" href="{{ URL::to('/') }}/js/vendor/select2/dist/css/select2.min.css">
    <link href="{{ URL::to('/') }}/css/app.css" rel="stylesheet" >
    <link href="{{ URL::to('/') }}/css/stacktable.css" rel="stylesheet">

    <link href="{{ URL::to('/') }}/css/admin.css?v=<?php echo uniqid() ?>" rel="stylesheet" >
    <link href="{{ URL::to('/') }}/vendor/blueimp-file-upload/css/style.css" rel="stylesheet" >
    <link href="{{ URL::to('/') }}/vendor/blueimp-file-upload/css/jquery.fileupload.css" rel="stylesheet" >
    <link href="{{ URL::to('/') }}/vendor/blueimp-file-upload/css/jquery.fileupload-ui.css" rel="stylesheet" >
    <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
    @include('layouts.favicon')
    <script src="//code.jquery.com/jquery-2.2.4.min.js"></script>


    <script> var url_tofs = "{{URL::to('/')}}"; </script>

    @include('shared.globalstyles')

    @yield('styles')

    <style>

        .panel a:hover{
            color:#000;
        }
        .panel-footer.text-right .btn{
            display: none;
        }
    </style>



    <meta name="csrf-token" content="{{ csrf_token() }}">

    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-120715363-1"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'UA-120715363-1');
    </script>
</head>

<body>
<div class="modal" id="myModalTareaExterna" tabindex="-1" style="z-index:99999;" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" style="font-weight:normal;">Asignar tarea a la unidad <strong id="st_titulo"></strong></h4>
            </div>
            <div class="modal-body">

                <input type="hidden" name="st_id_status" id="st_id_status">

                <input type="hidden" name="st_id_tarea" id="st_id_tarea">

                <div class="form-group">
                    <label>Descripcion: </label>
                    <textarea name="st_descripcion" id="st_descripcion" style="height:300px;" class="form-control"></textarea>
                </div>
                <div class="form-group">
                    <div id="st_fileuploader">Adjuntar</div>
                    <input type="hidden" value="" name="st_task-files" id="st_task-files">
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" onclick="crea_subtarea();">Asignar</button>
                <button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
            </div>
        </div>
    </div>
</div>




<section class="wrapper">
    @include('shared.nav')
    @include('shared.sidebar')
    <section>
        <section class="main-content">
            @yield('content')

        </section>
    </section>
</section>


@yield('modals')

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdn.ravenjs.com/3.23.1/raven.min.js" crossorigin="anonymous"></script>



<script>Raven.config('https://d1114ca76c1c46729b61d69dc5306658@sentry.io/299491').install();</script>

<script>
    Raven.setUserContext({
        email: '{{ $user->email }}',
    });
</script>
<script src="//npmcdn.com/tether@1.2.4/dist/js/tether.min.js"></script>

<script src="{{ URL::to('/') }}/js/jquery.dataTables.min.js"></script>
{{--<script src="{{ URL::to('/') }}/js/moment.min.js"></script>--}}
{{--<script src="{{ URL::to('/') }}/js/datetime-moment.js"></script>--}}

<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.js"  crossorigin="anonymous"></script>
{{--<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"  crossorigin="anonymous"></script>--}}
<script src="{{ URL::to('/') }}/js/app.js"></script>
<script src="{{ URL::to('/') }}/js/47admin/app.js"></script>
<script src="{{ URL::to('/') }}/js/47admin/pages.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/chosen/chosen.jquery.min.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/moment/min/moment-with-langs.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/select2/dist/js/select2.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/slider/js/bootstrap-slider.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/filestyle/bootstrap-filestyle.min.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/animo/animo.min.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/sparklines/jquery.sparkline.min.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/slimscroll/jquery.slimscroll.min.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/readmore/readmore.min.js"></script>
{{--<script src="{{ URL::to('/') }}/js/vendor/flot/jquery.flot.min.js"></script>--}}
{{--<script src="{{ URL::to('/') }}/js/vendor/flot/jquery.flot.tooltip.min.js"></script>--}}
{{--<script src="{{ URL::to('/') }}/js/vendor/flot/jquery.flot.resize.min.js"></script>--}}
{{--<script src="{{ URL::to('/') }}/js/vendor/flot/jquery.flot.pie.min.js"></script>--}}
{{--<script src="{{ URL::to('/') }}/js/vendor/flot/jquery.flot.time.min.js"></script>--}}
{{--<script src="{{ URL::to('/') }}/js/vendor/flot/jquery.flot.categories.min.js"></script>--}}
<script src="{{ URL::to('/') }}/js/vendor/jquery.uploadfile.min.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/bootbox/bootbox.min.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/summernote/summernote.js"></script>
<script src="{{ URL::to('/') }}/js/vendor/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>

<script src="{{ URL::to('/') }}/js/vendor/chosen/chosen.jquery.js"></script>
<script src="{{ URL::to('/') }}/vendor/blueimp-file-upload/js/vendor/jquery.ui.widget.js"></script>
<script src="{{ URL::to('/') }}/vendor/blueimp-file-upload/js/jquery.iframe-transport.js"></script>
<script src="{{ URL::to('/') }}/vendor/blueimp-file-upload/js/jquery.fileupload.js"></script>
<script src="{{ URL::to('/') }}/vendor/blueimp-file-upload/js/fileupload.js?v=<?php echo uniqid(); ?>"></script>
<script src="{{ URL::to('/') }}/js/stacktable/stacktable.js"></script>
<script src="{{ URL::to('/') }}/js/sweetalert2.all.js"></script>

<script>

    $(document).ready(function(){


        if( typeof notdatatable === 'undefined' ) {

            $('.table').DataTable({
                select: false,
                "bSort": false
            });

        }

    });

</script>

@yield('scripts');
</body>
</html>
