<!DOCTYPE html>
<html dir="rtl">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
    <title><?php echo $__env->yieldContent('title', $settings['SiteName']); ?></title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    
    <link rel="stylesheet" href="<?php echo e(asset('assets/bootstrap')); ?>/css/animate.css">
    <link rel="stylesheet" href="<?php echo e(asset('assets/bootstrap')); ?>/css/bootstrapValidator.min.css">

    <!-- daterange picker -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins')); ?>/daterangepicker/daterangepicker.css">
    <!-- bootstrap datepicker -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins')); ?>/datepicker/datepicker3.css">
    <!-- iCheck for checkboxes and radio inputs -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins')); ?>/iCheck/all.css">
    <!-- Bootstrap Color Picker -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins')); ?>/colorpicker/bootstrap-colorpicker.min.css">
    <!-- Bootstrap time Picker -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins')); ?>/timepicker/bootstrap-timepicker.min.css">
    <!-- Select2 -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins')); ?>/select2/select2.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/dist')); ?>/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/dist')); ?>/css/ionicons.min.css">

    <link rel="stylesheet" href="<?php echo e(asset('assets')); ?>/plugins/iCheck/all.css">
    <!-- fullCalendar 2.2.5-->
    <link rel="stylesheet" href="<?php echo e(asset('assets')); ?>/plugins/fullcalendar/fullcalendar.min.css">
    <link rel="stylesheet" href="<?php echo e(asset('assets')); ?>/plugins/fullcalendar/fullcalendar.print.css" media="print">

    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/dist')); ?>/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="<?php echo e(asset('assets/toastr/toastr.min.css')); ?>">
    <link rel="stylesheet" href="<?php echo e(asset('assets/bootstrap')); ?>/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins')); ?>/datatables2/dataTables.bootstrap.css">
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins')); ?>/datatables2/buttons.dataTables.min.css">
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins')); ?>/datatables2/fixedHeader.bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo e(asset('assets/plugins')); ?>/datatables2/responsive.bootstrap.min.css">

    <!-- Theme style -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/dist')); ?>/css/AdminLTE.min.css">

    <link rel="stylesheet" href="<?php echo e(asset('assets/bootstrap')); ?>/css/bootstrap-rtl.min.css">
    <link rel="stylesheet" href="<?php echo e(asset('assets/dist')); ?>/css/AdminLTE-rtl.min.css">

    
    <link rel="stylesheet" href="<?php echo e(asset('assets')); ?>/sweetalert.css">
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('assets')); ?>/jquery.fancybox.min.css" />

    <link rel="stylesheet" href="<?php echo e(asset('assets/datetimepicker/css')); ?>/bootstrap-datetimepicker.min.css">
    <link href="<?php echo e(asset('assets/font-awesome.min.css')); ?>" rel="stylesheet" />
    <style>
        .iconselect {
            font-family: 'fontAwesome';
            font-weight: 900;
            font-size: 20px;
        }

        .datepicker.dropdown-menu {
            right: initial;
        }

        .dataTables_processing {
            font-size: 30px !important;
            font-weight: bold;
            color: #4267b2;
        }

        .dataTables_scrollHeadInner,
        .dataTables_scrollBody,
        .dataTables_scrollHead,
        table {
            min-width: 100% !important;
            width: 100% !important;
        }

        @media  print {
            table {
                max-width: 100% !important;
            }

            .printHeader {
                display: block !important;
            }

            .table-bordered {
                margin-bottom: 0px !important;
            }

            a[href]:after {
                content: none !important;
            }

            .main-footer,
            .dt-buttons,
            .dataTables_filter {
                display: none;
            }

            #footer {
                visibility: visible;
            }

            a {
                visibility: hidden;
            }

            .box {
                border-top: none !important;
            }

            .table td,
            .table th {
                border: 1px solid #020202 !important;
            }

            @media  print {
                .printHeader {
                    display: block !important;
                }

                table {
                    page-break-after: auto;
                }

                tr {
                    page-break-inside: avoid;
                    page-break-after: auto
                }

                td {
                    page-break-inside: avoid;
                    page-break-after: auto
                }

                thead {
                    display: table-header-group;
                    page-break-inside: avoid;
                }

                tfoot {
                    display: table-footer-group
                }

                @page  {
                    margin: .1cm;
                }

                body {
                    margin: .1cm;
                }

                .panel-default {
                    border: none;
                }

                .hideprint {
                    visibility: hidden;
                    display: none;
                    margin: 0;
                }
            }

            .dataTables_length,
            .box-tools,
            .dataTables_info,
            .table.dataTable thead .sorting:after,
            .table.dataTable thead .sorting:after,
            table.dataTable thead .sorting_asc:after,
            table.dataTable thead .sorting_desc:after {
                display: none !important;
            }

            .table>caption+thead>tr:first-child>th,
            .table>colgroup+thead>tr:first-child>th,
            .table>thead:first-child>tr:first-child>th,
            .table>caption+thead>tr:first-child>td,
            .table>colgroup+thead>tr:first-child>td,
            .table>thead:first-child>tr:first-child>td {
                text-align: center;
            }

            html,
            body {
                height: max-content;
                width: 100vh;
                margin: 0 !important;
                padding: 0 !important;
            }

            .content-wrapper {
                width: 100%;
                margin-right: -15px;
            }

        }

        .skin-blue .treeview-menu>li.active>a,
        .skin-blue .treeview-menu>li>a:hover {
            color: #5cb85c;
        }

        .small-box .icon {
            top: 5px !important;
        }

        @media (max-width:700px) {
            .modal-dialog {
                overflow-x: auto;
                max-height: 500px;
            }
        }
    </style>
    <?php echo $__env->yieldPushContent('css'); ?>

</head>

<body class="<?php echo e(!auth()->check() ? 'sidebar-collapse' : ''); ?> hold-transition skin-blue sidebar-mini">
    
    <div class="wrapper">
        <?php if(auth()->check()): ?>
            <?php echo $__env->make('_partial.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php echo $__env->make('_partial.sidebar', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php endif; ?>
        <?php echo $__env->yieldContent('content'); ?>
        <?php echo $__env->make('_partial.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        <?php echo $__env->make('_partial.script', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    </div>
    <!-- ./wrapper -->
    <!-- jQuery 2.2.3 -->
    <script src="<?php echo e(asset('assets')); ?>/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <!-- jQuery UI 1.11.4 -->

    <!-- Bootstrap 3.3.6 -->
    <script src="<?php echo e(asset('assets')); ?>/bootstrap/js/bootstrap.min.js"></script>

    <?php echo $__env->yieldPushContent('typeaheadJs'); ?>
    <script type="text/javascript" src="<?php echo e(asset('assets')); ?>/jquery.fancybox.min.js"></script>
    <script src="<?php echo e(asset('assets')); ?>/dist/js/jquery-ui.min.js"></script>

    <!-- Slimscroll -->
    <script src="<?php echo e(asset('assets')); ?>/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <!-- FastClick -->
    <script src="<?php echo e(asset('assets')); ?>/plugins/fastclick/fastclick.js"></script>
    <!-- AdminLTE App -->
    <script src="<?php echo e(asset('assets')); ?>/dist/js/app.min.js"></script>
    <!-- AdminLTE for demo purposes -->
    <script src="<?php echo e(asset('assets')); ?>/dist/js/demo.js"></script>
    <!-- AdminLTE for demo purposes -->
    <script src="<?php echo e(asset('assets')); ?>/sweetalert.min.js"></script>

    <script src="<?php echo e(asset('assets/plugins')); ?>/select2/select2.full.min.js"></script>
    <!-- bootstrap datepicker -->
    <script src="<?php echo e(asset('assets/plugins')); ?>/datepicker/bootstrap-datepicker.js"></script>
    <script src="<?php echo e(asset('assets')); ?>/plugins/iCheck/icheck.min.js"></script>

    <!-- InputMask -->
    <script src="<?php echo e(asset('assets')); ?>/plugins/input-mask/jquery.inputmask.js"></script>
    <script src="<?php echo e(asset('assets')); ?>/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
    <script src="<?php echo e(asset('assets')); ?>/plugins/input-mask/jquery.inputmask.extensions.js"></script>
    <script src="<?php echo e(asset('assets')); ?>/jquery.numeric.js"></script>
    <script src="<?php echo e(asset('assets')); ?>/moment.min.js"></script>
    <?php echo $__env->yieldPushContent('js'); ?>
    <script src="<?php echo e(asset('assets/datetimepicker/js')); ?>/bootstrap-datetimepicker.min.js"></script>

    <script>
        if (tags == undefined) {
            var tags = false;
        }
        $('.select2AjaxRequest').select2({
            ajax: {
                url: function() {
                    return $(this).attr('data-url');
                },
                dataType: 'json',
                data: function(params) {
                    return {
                        term: params.term // search term
                    };
                },
                processResults: function(response) {
                    return {
                        results: response
                    };
                },
                cache: true,
                minimumInputLength: 1,
            }
        });
        $('.select2ProductAjaxRequest').select2({
            tags: tags,
            width: '100%',
            ajax: {
                url: function() {
                    return $(this).attr('data-url');
                },
                dataType: 'json',
                data: function(params) {
                    return {
                        term: params.term
                    };
                },
                processResults: function(response) {
                    return {
                        results: response
                    };
                },
                cache: true,
                minimumInputLength: 1,
            }
        });

        $(".datetimepicker").datetimepicker({
            format: 'YYYY-MM-DD hh:mm A',
            sideBySide: true,
        });
        var current = window.location.href;
        $("ul.sidebar-menu li.active").removeClass('active');
        var li = $('a[href="' + current + '"]').closest('li');
        var parent = li.parents('.treeview-menu');
        if (parent.length) {
            parent.closest('li').addClass('active');
        }
        if (li.length) {
            li.addClass('active');
        } else {
            $("#homeLi").addClass('active');
        }
        $(document).on("click", ".remove-record", function(e) {
            e.preventDefault();
            var btn = $(this);
            var url_ = $(this).attr('data-url');
            swal({
                    title: "هل انت متاكد من الحذف",
                    text: "سوف تفقد البيانات عند الحذف ولن يمكنك استراجعها",
                    type: "warning",
                    showCancelButton: true,
                    confirmButtonColor: "#DD4140",
                    closeOnConfirm: false,
                    showLoaderOnConfirm: true,
                    cancelButtonText: "إلغاء",
                    confirmButtonText: "موافق",
                },
                function() {
                    $.ajax({
                        url: url_,
                        type: 'POST',
                        data: {
                            _token: "<?php echo e(csrf_token()); ?>",
                            _method: 'DELETE'
                        },
                        success: function(result) {
                            //alert(result);
                            if (result == "transaction deleted") {
                                window.location.reload();
                            } else if (result == 'done') {
                                //btn.closest('tr').fadeOut();
                                swal({
                                    title: "نجاح العملية!",
                                    text: "تم الحذف بنجاح",
                                    type: "success",
                                    confirmButtonText: "تمام"
                                });
                                if (typeof table != "undefined") {
                                    table.row(btn.closest('tr')).remove().draw();
                                } else {
                                    btn.closest('tr').remove();
                                }

                            } else {
                                swal({
                                    title: "فشل العملية!",
                                    text: "لن يمكنك الحذف",
                                    type: "error",
                                    confirmButtonText: "تمام"
                                });
                            }
                        }
                    });
                });
        });
        <?php if(session()->has('alert-success')): ?>
            //toastr.success("");
            swal("نجاح العملية!", "<?php echo e(session('alert-success')); ?>", "success");
        <?php elseif(session()->has('alert-danger')): ?>
            //toastr.error("");
            swal("فشل العملية!", "<?php echo e(session('alert-danger')); ?>", "error");
        <?php endif; ?>

        $(document).on('hidden.bs.modal', function(e) {
            $(e.target).removeData('bs.modal');
        });

        $('.modal').on('show.bs.modal', function(e) {
            var animation = $(this).attr('rel');
            $(this).find('.modal-dialog').attr('class', 'modal-lg modal-dialog animated ' + animation);
        });

        $(document).on('click', ".deleteImg", function(e) {
            e.preventDefault();
            var mediaId = $(this).attr('rel');
            var parent = $(this).closest('.imageContainer');
            parent.closest('form').append('<input type="hidden" value="' + mediaId +
                '" class="form-control" name="mediaTodelete[]">');
            parent.fadeOut();
        });

        $(document).on("click", ".showAlertWarning", function(e) {
            e.preventDefault();
            var btn = $(this);
            var url_ = $(this).attr('href');
            swal({
                    title: "هل انت متأكد من هذه العمليه",
                    text: "سوف يتم مسح جميع البيانات ولن يمكن استرجعها",
                    type: "warning",
                    showCancelButton: true,
                    confirmButtonColor: "#DD4140",
                    closeOnConfirm: false,
                    showLoaderOnConfirm: true,
                    cancelButtonText: "إلغاء الامر",
                    confirmButtonText: "نعم متأكد",
                },
                function() {
                    $.ajax({
                        url: url_,
                        type: 'GET',
                        success: function(result) {
                            //swal({title:"نجاح العملية!", text:"تمت العملية بنجاح",type:"success",confirmButtonText: "تمام"});
                            if (result == "failed") {
                                swal({
                                    title: "خطأ",
                                    text: "لا يمكن المسح",
                                    type: "error",
                                    confirmButtonText: "تمام"
                                });
                            } else {
                                swal({
                                    title: "نجاح العملية",
                                    text: "تم مسح البيانات بنجاح",
                                    type: "success",
                                    confirmButtonText: "تمام"
                                });
                                location.reload();
                            }
                            //window.location.href = newLink;
                            //window.location.reload();

                        }
                    });
                });
        });
    </script>
</body>

</html>
<?php /**PATH /home/mwarsha2023/public_html/test4.mwarsha.com/resources/views/layouts/front.blade.php ENDPATH**/ ?>