<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">

 <meta name="csrf-token" content="{{ csrf_token() }}">
<title>Vega Business Software</title>

<link rel="shortcut icon" type="image/x-icon" href="{{ asset('new_theme/img/favicon.png') }}">



    <link href="{{ asset('css/jquery-ui.css')}}" rel="stylesheet" type="text/css" />

<link rel="stylesheet" href="{{ asset('new_theme/css/bootstrap.min.css') }}">

<link rel="stylesheet" href="{{ asset('new_theme/plugins/fontawesome/css/fontawesome.min.css') }}">
<link rel="stylesheet" href="{{ asset('new_theme/plugins/fontawesome/css/all.min.css') }}">

<link rel="stylesheet" href="{{ asset('new_theme/css/line-awesome.min.css') }}">
<link rel="stylesheet" href="{{ asset('new_theme/css/material.css') }}">

<link rel="stylesheet" href="{{ asset('new_theme/css/font-awesome.min.css') }}">

<link rel="stylesheet" href="{{ asset('new_theme/css/line-awesome.min.css') }}">

<link rel="stylesheet" href="{{ asset('new_theme/css/jquery-ui.css') }}">
<link rel="stylesheet" type="text/css" href="{{ asset('date_picker/jquery.datetimepicker.css') }}"/>

<!-- <link rel="stylesheet" href="{{ asset('new_theme/plugins/morris/morris.css') }}"> -->
<link rel="stylesheet" href="{{ asset('new_theme/css/dataTables.bootstrap4.min.css')}}">

<link rel="stylesheet" href="{{ asset('new_theme/css/select2.min.css')}}">

<link rel="stylesheet" href="{{ asset('new_theme/css/fullcalendar.min.css')}}">
<link rel="stylesheet" href="{{ asset('new_theme/css/bootstrap-datetimepicker.min.css')}}">
<link rel="stylesheet" href="{{ asset('new_theme/css/style.css') }}">
<link rel="stylesheet" href="{{ asset('new_theme/css/vega_css.css') }}">
<link rel="stylesheet" href="{{ asset('css/MonthPicker.min.css') }}">

</head>
<body>

<div class="main-wrapper">

<div class="header">

<div class="header-left">
<a href="javascript:void(0);" class="logo">
<img src="{{ asset('new_theme/img/logo.png') }}" style="display:none; width="40" height="40" alt="">
</a>
<a href="admin-dashboard.html" class="logo2">
<img src="{{ asset('new_theme/img/logo2.png') }}" width="40" height="40" alt="">
</a>
</div>

<a id="toggle_btn" href="javascript:void(0);">
<span class="bar-icon">
<span></span>
<span></span>
<span></span>
</span>
</a>

<div class="page-title-box">
<h3>{{ Session::get('BranchName') }}</h3>
</div>

<a id="mobile_btn" class="mobile_btn" href="#sidebar"><i class="fa fa-bars"></i></a>

<ul class="nav user-menu">

<li class="nav-item">
<div class="top-nav-search">
<a href="javascript:void(0);" class="responsive-search">
<i class="fa fa-search"></i>
</a>
<form action="search.html">
<input class="form-control" type="hidden" placeholder="Search here">
<button class="btn" type="submit" style="display:none;"><i class="fa fa-search"></i></button>
</form>
</div>
</li>


<li class="nav-item dropdown has-arrow flag-nav" style="display:none;">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button">
<img src="{{ asset('new_theme/img/flags/us.png') }}" alt="" height="20"> <span>English</span>
</a>
<div class="dropdown-menu dropdown-menu-right">
<a href="javascript:void(0);" class="dropdown-item">
<img src="{{ asset('new_theme/img/flags/us.png') }}" alt="" height="16"> English
</a>
<a href="javascript:void(0);" class="dropdown-item">
<img src="{{ asset('new_theme/img/flags/fr.png') }}" alt="" height="16"> French
</a>
<a href="javascript:void(0);" class="dropdown-item">
<img src="{{ asset('new_theme/img/flags/es.png') }}" alt="" height="16"> Spanish
</a>
<a href="javascript:void(0);" class="dropdown-item">
<img src="{{ asset('new_theme/img/flags/de.png') }}" alt="" height="16"> German
</a>
</div>
</li>


<li class="nav-item dropdown" style="display:none;">
<a href="#" class="dropdown-toggle nav-link" data-bs-toggle="dropdown">
<i class="fa fa-bell-o"></i> <span class="badge rounded-pill">3</span>
</a>
<div class="dropdown-menu notifications">
<div class="topnav-dropdown-header">
<span class="notification-title">Notifications</span>
<a href="javascript:void(0)" class="clear-noti"> Clear All </a>
</div>
<div class="noti-content">
<ul class="notification-list">
<li class="notification-message">
<a href="activities.html">
<div class="media d-flex">
<span class="avatar flex-shrink-0">
<img alt="" src="{{ asset('new_theme/img/profiles/avatar-02.jpg') }}">
</span>
<div class="media-body flex-grow-1">
<p class="noti-details"><span class="noti-title">John Doe</span> added new task <span class="noti-title">Patient appointment booking</span></p>
<p class="noti-time"><span class="notification-time">4 mins ago</span></p>
</div>
</div>
</a>
</li>
<li class="notification-message">
<a href="activities.html">
<div class="media d-flex">
<span class="avatar flex-shrink-0">
<img alt="" src="{{ asset('new_theme/img/profiles/avatar-03.jpg') }}">
</span>
<div class="media-body flex-grow-1">
<p class="noti-details"><span class="noti-title">Tarah Shropshire</span> changed the task name <span class="noti-title">Appointment booking with payment gateway</span></p>
<p class="noti-time"><span class="notification-time">6 mins ago</span></p>
</div>
</div>
</a>
</li>
<li class="notification-message">
<a href="activities.html">
<div class="media d-flex">
<span class="avatar flex-shrink-0">
<img alt="" src="{{ asset('new_theme/img/profiles/avatar-06.jpg') }}">
</span>
<div class="media-body flex-grow-1">
<p class="noti-details"><span class="noti-title">Misty Tison</span> added <span class="noti-title">Domenic Houston</span> and <span class="noti-title">Claire Mapes</span> to project <span class="noti-title">Doctor available module</span></p>
<p class="noti-time"><span class="notification-time">8 mins ago</span></p>
</div>
</div>
</a>
</li>
<li class="notification-message">
<a href="activities.html">
<div class="media d-flex">
<span class="avatar flex-shrink-0">
<img alt="" src="{{ asset('new_theme/img/profiles/avatar-17.jpg') }}">
</span>
<div class="media-body flex-grow-1">
<p class="noti-details"><span class="noti-title">Rolland Webber</span> completed task <span class="noti-title">Patient and Doctor video conferencing</span></p>
<p class="noti-time"><span class="notification-time">12 mins ago</span></p>
</div>
</div>
</a>
</li>
<li class="notification-message">
<a href="activities.html">
<div class="media d-flex">
<span class="avatar flex-shrink-0">
<img alt="" src="{{ asset('new_theme/img/profiles/avatar-13.jpg') }}">
</span>
<div class="media-body flex-grow-1">
<p class="noti-details"><span class="noti-title">Bernardo Galaviz</span> added new task <span class="noti-title">Private chat module</span></p>
<p class="noti-time"><span class="notification-time">2 days ago</span></p>
</div>
</div>
</a>
</li>
</ul>
</div>
<div class="topnav-dropdown-footer">
<a href="activities.html">View all Notifications</a>
</div>
</div>
</li>


<li class="nav-item dropdown" style="display:none;">
<a href="#" class="dropdown-toggle nav-link" data-bs-toggle="dropdown">
<i class="fa fa-comment-o"></i> <span class="badge rounded-pill">8</span>
</a>
<div class="dropdown-menu notifications">
<div class="topnav-dropdown-header">
<span class="notification-title">Messages</span>
<a href="javascript:void(0)" class="clear-noti"> Clear All </a>
</div>
<div class="noti-content">
<ul class="notification-list">
<li class="notification-message">
<a href="chat.html">
<div class="list-item">
<div class="list-left">
<span class="avatar">
<img alt="" src="{{ asset('new_theme/img/profiles/avatar-09.jpg') }}">
</span>
</div>
<div class="list-body">
<span class="message-author">Richard Miles </span>
<span class="message-time">12:28 AM</span>
<div class="clearfix"></div>
<span class="message-content">Lorem ipsum dolor sit amet, consectetur adipiscing</span>
</div>
</div>
</a>
</li>
<li class="notification-message">
<a href="chat.html">
<div class="list-item">
<div class="list-left">
<span class="avatar">
<img alt="" src="{{ asset('new_theme/img/profiles/avatar-02.jpg') }}">
</span>
</div>
<div class="list-body">
<span class="message-author">John Doe</span>
<span class="message-time">6 Mar</span>
<div class="clearfix"></div>
<span class="message-content">Lorem ipsum dolor sit amet, consectetur adipiscing</span>
</div>
</div>
</a>
</li>
<li class="notification-message">
<a href="chat.html">
<div class="list-item">
<div class="list-left">
<span class="avatar">
<img alt="" src="{{ asset('new_theme/img/profiles/avatar-03.jpg') }}">
</span>
</div>
<div class="list-body">
<span class="message-author"> Tarah Shropshire </span>
<span class="message-time">5 Mar</span>
<div class="clearfix"></div>
<span class="message-content">Lorem ipsum dolor sit amet, consectetur adipiscing</span>
</div>
</div>
</a>
</li>
<li class="notification-message">
<a href="chat.html">
<div class="list-item">
<div class="list-left">
<span class="avatar">
<img alt="" src="{{ asset('new_theme/img/profiles/avatar-05.jpg') }}">
</span>
</div>
<div class="list-body">
<span class="message-author">Mike Litorus</span>
<span class="message-time">3 Mar</span>
<div class="clearfix"></div>
<span class="message-content">Lorem ipsum dolor sit amet, consectetur adipiscing</span>
</div>
</div>
</a>
</li>
<li class="notification-message">
<a href="chat.html">
<div class="list-item">
<div class="list-left">
<span class="avatar">
<img alt="" src="{{ asset('new_theme/img/profiles/avatar-08.jpg') }}">
</span>
</div>
<div class="list-body">
<span class="message-author"> Catherine Manseau </span>
<span class="message-time">27 Feb</span>
<div class="clearfix"></div>
<span class="message-content">Lorem ipsum dolor sit amet, consectetur adipiscing</span>
</div>
</div>
</a>
</li>
</ul>
</div>
<div class="topnav-dropdown-footer">
<a href="chat.html">View all Messages</a>
</div>
</div>
</li>

<li class="nav-item dropdown has-arrow main-drop">
<a href="#" class="dropdown-toggle nav-link" data-bs-toggle="dropdown">
<span class="user-img" style="display:none;"><img src="{{ asset('new_theme/img/profiles/avatar-21.jpg') }}" alt="">
<span class="status online"></span></span>
<span>{{ Auth::user()->name }}</span>
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="profile.html">My Profile</a>
<a class="dropdown-item" href="settings.html">Settings</a>
<a class="dropdown-item" href="{{ route('logout') }}"
                                       onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();"><i class="dropdown-item-icon icon-power text-primary"></i>
                                                     <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
                                        @csrf
                                    </form>>Logout</a>
</div>
</li>
</ul>


<div class="dropdown mobile-user-menu">
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false"><i class="fa fa-ellipsis-v"></i></a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="profile.html">My Profile</a>
<a class="dropdown-item" href="settings.html">Settings</a>
<a class="dropdown-item" href="index.html">Logout</a>
</div>
</div>

</div>


<div class="sidebar" id="sidebar">
<div class="sidebar-inner slimscroll">
<div id="sidebar-menu" class="sidebar-menu">

<ul class="sidebar-vertical">

 @foreach ($contents as $ind =>$content)
              
               @if($content['menu_type']==3)
            <li class="li3">
<a href="<?php echo "/".$content['root']."/".$content['menu_id']; ?> "  p_url="<?php echo $content['root']; ?>"><i class="<?php echo $content['menu_icon']; ?>"></i> <span><?php echo $content['menu_name']; ?></span></a>
</li>
            @endif
             @if($content['menu_type']==0)
             <li class="submenu">
<a href="#"  class="outa"><i class="<?php echo $content['menu_icon']; ?>"></i> <span> <?php echo $content['menu_name']; ?> </span> <span class="menu-arrow"></span></a>
<ul style="display: none;">

                     @foreach ($content['sub'] as $id=> $subm)
                 
                 <li><a  class="ina" href="<?php echo "/".$subm['root']."/".$subm['menu_id']; ?>"  p_url="<?php echo $subm['root']; ?>"> <?php echo $subm['menu_name']; ?></a></li>
                     @endforeach
                </ul>
             
            </li>
            @endif
           
                 @endforeach
</ul>
</div>
</div>
</div>


<div class="two-col-bar" id="two-col-bar"></div>


<div class="page-wrapper">

<div class="content container-fluid">


<form onsubmit="event.preventDefault();" autocomplete="off">
@yield('page-content')
</form>
</div>

</div>

</div>



<div id="myModaltable" class="modal fade" role="dialog">
    <div class="modal-dialog modal-lg" >
    
      <!-- Modal content-->
      <div class="modal-content" style="height:auto !important;">
        <div class="modal-header">
        <h4 class="modal-title">Table Settings <?php //echo $formid; ?></h4>
          <button type="button" class="close" data-bs-dismiss="modal">&times;</button>
        
        </div>
        <div class="modal-body">
        
        <form method="post" autocomplete="off" class="modal_form" enctype="multipart/form-data"  role="form" action="{{url('save_table_settings')}}">
        
        @csrf



<div class="form-group">
<input type="hidden" name="rowid" value="<?php if(isset($id)) { echo $id; }?>">
<input type="submit" name="tablesettings" class="btn btn-success" style="float:right !important; margin-top: 5px;" value="SAVE">
</div>
</form>
       
        </div>
        <div class="modal-footer" style="border-top:none !important;">
      
        </div>
      </div>
      
    </div>
  </div>
  



<script src="{{ asset('new_theme/js/jquery-3.6.0.min.js') }}"></script>

<script src="{{ asset('new_theme/js/bootstrap.bundle.min.js') }}"></script>

<script src="{{ asset('new_theme/js/jquery.slimscroll.min.js') }}"></script>

<!-- <script src="{{ asset('new_theme/plugins/morris/morris.min.js') }}"></script>
<script src="{{ asset('new_theme/plugins/raphael/raphael.min.js') }}"></script>
<script src="{{ asset('new_theme/js/chart.js') }}"></script> -->
<script src="{{ asset('new_theme/js/select2.min.js') }}"></script>

<script src="{{ asset('new_theme/js/moment.min.js') }}"></script>
<script src="{{ asset('new_theme/js/bootstrap-datetimepicker.min.js') }}"></script>
<script src="{{ asset('new_theme/js/jquery.dataTables.min.js') }}"></script>
<script src="{{ asset('new_theme/js/dataTables.bootstrap4.min.js') }}"></script>
<script src="{{ asset('new_theme/js/greedynav.js') }}"></script>

<script src="{{ asset('new_theme/js/layout.js') }}"></script>
<script src="{{ asset('new_theme/js/theme-settings.js') }}"></script>

<script src="{{ asset('new_theme/js/app.js') }}"></script>
<script src="{{ asset('new_theme/js/jquery-ui.js') }}"></script>
<script src="{{ asset('js/jquery.timepicker.min.js') }}"></script>
<script src="{{ asset('date_picker/jquery.datetimepicker.full.js') }}" ></script>

<script src="{{ asset('datatables/dataTables.buttons.min.js')}}"></script>
<script src="{{ asset('datatables/buttons.bootstrap4.min.js')}}"></script>
<script src="{{ asset('datatables/jszip.min.js')}}"></script>
<script src="{{ asset('datatables/pdfmake.min.js')}}"></script>
<script src="{{ asset('datatables/vfs_fonts.js')}}"></script>
<script src="{{ asset('datatables/buttons.html5.min.js')}}"></script>
<script src="{{ asset('datatables/buttons.print.min.js')}}"></script>
<script src="{{ asset('datatables/buttons.colVis.min.js')}}"></script>

<script src="{{ asset('new_theme/js/jquery.maskedinput.min.js')}}"></script>
<script src="{{ asset('new_theme/js/mask.js')}}"></script>
<script src="{{ asset('js/tree.js') }}" ></script>
<script src="{{ asset('js/MonthPicker.min.js') }}" ></script>
<script src="{{ asset('new_theme/js/jquery-migrate-3.0.0.min.js') }}"></script>

@yield('page-script')
</body>
</html>