<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'CMS') .' - '. ($title ?? '') }}</title>
    <!-- <link rel="shortcut icon" href="{{ asset('assets/admin/images/favicon.ico') }}" title="Favicon" sizes="16x16" /> -->
    <!--With LTR 
    <link rel="stylesheet" href="{{ asset('assets/admin/css/lib/bootstrap-ltr.min.css') }}">-->
    <!--/With LTR -->
    <!--With RTL -->
    <link rel="stylesheet" href="{{ asset('assets/admin/css/lib/bootstrap-rtl.min.css') }}" /> 
    <!--/With RTL -->
    
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,500,500i,700,900&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Rubik:400,500,700,900&display=swap" rel="stylesheet">
    <link href="https://www.tiny.cloud/docs-4x/advanced/events/">
    <link href="hhttps://www.tiny.cloud/docs/api/tinymce.util/tinymce.util.eventdispatcher/#on">
    <link rel="stylesheet" href="{{ asset('assets/admin/css/lib/animate.css') }}" />
    <link rel="stylesheet" href="{{ asset('assets/admin/css/lib/jquery-ui.css') }}" />
    <link rel="stylesheet" href="{{ asset('assets/admin/css/lib/jquery-ui.theme.css') }}" />
    <link rel="stylesheet" href="{{ asset('assets/admin/css/lib/all.min.css') }}" />
    <link rel="stylesheet" href="{{ asset('assets/admin/css/lib/jquery.fancybox.css') }}" />
    <link rel="stylesheet" href="{{ asset('assets/admin/css/styles.css') }}" />
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">

     <link rel="stylesheet" href="{{ asset('assets/admin/css/style_ar.css') }}" /> 
    <!-- <link rel="stylesheet" href="{{ asset('assets/admin/css/style_en.css') }}" /> -->
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.0/themes/base/jquery-ui.css">
  <link rel="stylesheet" href="/resources/demos/style.css">
  
  <script src="https://code.jquery.com/jquery-3.6.0.js"></script>
  <script src="https://code.jquery.com/ui/1.13.0/jquery-ui.js"></script>
  <script>
  $( function() {
    $( "#sortable" ).sortable({
        stop: function(){
            $.map($(this).find("tr"),function(item){
                var itemId = item.id;
                var itemPost = $(item).index();
                // console.log(itemId);
                // console.log(itemPost);
                $.ajax({
                    url : {!! json_encode(url('dashboard/orderdata')) !!},
                    type : "POST",
                    dataType : "json",
                    data : {itemId: itemId , itemPost : itemPost,'_token' : "{{ csrf_token() }}"}
                });
            });
        }
    });
  } );
  $( function() {
    $( "#sortableModal" ).sortable({
        stop: function(){
            $.map($(this).find("tr"),function(item){
                var itemId = item.id;
                var itemPost = $(item).index();
                // console.log(itemId);
                // console.log(itemPost);
                $.ajax({
                    url : {!! json_encode(url('dashboard/orderdatamodal')) !!},
                    type : "POST",
                    dataType : "json",
                    data : {itemId: itemId , itemPost : itemPost,'_token' : "{{ csrf_token() }}"}
                });
            });
        }
    });
  } );
  </script>
</head>

<body>

@yield('container_content')

<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB9i5KheHihWwx0k0y0xyqWy-RVLB9AqjU&callback=initMap"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="{{ asset('assets/admin/js/lib/jquery-3.0.0.min.js') }}"></script>
<script src="{{ asset('assets/admin/js/lib/jquery-migrate-3.0.0.min.js') }}"></script>
<script src="{{ asset('assets/admin/js/lib/popper.min.js') }}"></script>
<script src="{{ asset('assets/admin/js/lib/bootstrap.min.js') }}"></script>
<script src="{{ asset('assets/admin/js/lib/wow.min.js') }}"></script>
<script src="{{ asset('assets/admin/js/lib/jquery-ui.js') }}"></script>
<script src="{{ asset('assets/admin/js/lib/jquery.fancybox.js') }}"></script>
<script src="{{ asset('assets/admin/js/main.js') }}"></script>
@yield('container_js')
</body>

</html>
