mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-11-03 23:59:09 +00:00 
			
		
		
		
	Added new index layout
Added new index layout for the index pages of the CRUD as it includes vue.js for the confirm delete modal
This commit is contained in:
		
							parent
							
								
									beaf9af041
								
							
						
					
					
						commit
						25822351ef
					
				
					 1 changed files with 39 additions and 0 deletions
				
			
		
							
								
								
									
										39
									
								
								resources/views/layouts/index.blade.php
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								resources/views/layouts/index.blade.php
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,39 @@
 | 
				
			||||||
 | 
					<!DOCTYPE html>
 | 
				
			||||||
 | 
					<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
 | 
				
			||||||
 | 
					<head>
 | 
				
			||||||
 | 
					    <meta charset="utf-8">
 | 
				
			||||||
 | 
					    <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
				
			||||||
 | 
					    <meta name="csrf-token" content="{{ csrf_token() }}">
 | 
				
			||||||
 | 
					    @if(isset(Auth::user()->api_token))
 | 
				
			||||||
 | 
					        <meta name="api_token" content="{{ Auth::user()->api_token }}">
 | 
				
			||||||
 | 
					    @endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <title>@yield('title') - @if (config()->has('app.name')){{ config('app.name') }} @else My idlers @endif</title>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @if(Session::get('dark_mode'))
 | 
				
			||||||
 | 
					        <link rel="stylesheet" href="{{ asset('css/bootstrap-dark.min.css') }}">
 | 
				
			||||||
 | 
					    @else
 | 
				
			||||||
 | 
					        <link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}">
 | 
				
			||||||
 | 
					    @endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    <link rel="stylesheet" href="{{ asset('css/fa.min.css') }}">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @yield('css_style')
 | 
				
			||||||
 | 
					    <script src="{{ asset('js/vue.min.js') }}"></script>
 | 
				
			||||||
 | 
					</head>
 | 
				
			||||||
 | 
					<body class="font-sans antialiased">
 | 
				
			||||||
 | 
					<div class="container-fluid">
 | 
				
			||||||
 | 
					    @include('layouts.navigation')
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					<div class="container">
 | 
				
			||||||
 | 
					    <h3 class="ms-2 mt-3">
 | 
				
			||||||
 | 
					        @yield('header')
 | 
				
			||||||
 | 
					    </h3>
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					<div class="container">
 | 
				
			||||||
 | 
					    @yield('content')
 | 
				
			||||||
 | 
					</div>
 | 
				
			||||||
 | 
					<script src="{{ asset('js/bootstrap.min.js') }}" defer></script>
 | 
				
			||||||
 | 
					@yield('scripts')
 | 
				
			||||||
 | 
					</body>
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue