<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Laravel</title>

        <link rel="stylesheet" href="{{ asset('css/app.css') }}">
        <link rel="stylesheet" href="{{ asset('css/datatable/dataTables.bootstrap4.min.css') }}">
        <link rel="stylesheet" href="{{ asset('css/datatable/buttons.bootstrap4.min.css') }}">
        @yield('style')
        
    </head>
    <body>
        <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
            <div class="container">
                <a class="navbar-brand" href="#">Data Migration</a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo02" aria-controls="navbarTogglerDemo02" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>

                <div class="collapse navbar-collapse" id="navbarTogglerDemo02">
                    <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
                        <li class="nav-item {{ (request()->is('/')) ? 'active' : '' }}">
                            <a class="nav-link" href="{{ url('/') }}">Data</a>
                        </li>

                        <li class="nav-item {{ (request()->is('data-import')) ? 'active' : '' }}">
                            <a class="nav-link" href="{{ url('data-import') }}">To Import</a>
                        </li>
                        
                        <li class="nav-item {{ (request()->is('data-dirty')) ? 'active' : '' }}">
                            <a class="nav-link" href="{{ url('data-dirty') }}">To Data Clean</a>
                        </li>

                        <li class="nav-item active">
                             <a class="nav-link text-warning" href="{{ route('logout') }}"
                                       onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                                        {{ __('Logout') }}
                            </a>

                            <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none">
                                @csrf
                            </form>

                        </li>
                        
                    </ul>
                    
                </div>
            </div>
        </nav>
        <div class="container">
            @yield('content')
        </div>
        <script src="{{ asset('js/app.js') }}"></script>
        <script src="{{ asset('js/datatable/jquery.dataTables.min.js') }}"></script>
        <script src="{{ asset('js/datatable/dataTables.bootstrap4.min.js') }}"></script>
        <script src="{{ asset('js/datatable/dataTables.buttons.min.js') }}"></script>
        <script src="{{ asset('js/datatable/buttons.bootstrap4.min.js') }}"></script>
        {{-- <script src="{{ asset('js/datatable/jszip.min.js') }}"></script> --}}
        {{-- <script src="{{ asset('js/datatable/pdfmake.min.js') }}"></script> --}}
        <script src="{{ asset('js/datatable/vfs_fonts.js') }}"></script>
        <script src="{{ asset('js/datatable/buttons.html5.min.js') }}"></script>
        {{-- <script src="{{ asset('js/datatable/buttons.print.min.js') }}"></script> --}}
        {{-- <script src="{{ asset('js/datatable/buttons.colVis.min.js') }}"></script> --}}
        
        
        

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