Created
February 22, 2020 07:33
-
-
Save rizkhal/ee95400326d478a6e6fef0372237a1ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
<head> | |
<title>Larave repository desing pattern</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="csrf-token" content="{{ csrf_token() }}" /> | |
<!-- Styles --> | |
<link rel="stylesheet" href="{{ asset('assets/css/bootstrap.min.css') }}"> | |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"> | |
<link rel="stylesheet" href="{{ asset('assets/plugins/toastr/toastr.min.css') }}"> | |
</head> | |
<body class="bg-dark"> | |
<div class="container"> | |
<div class="row justify-content-center"> | |
<div class="col-md-6 mt-5 mb-5 bg-light rounded"> | |
@stack('heading') | |
<hr class="bg-light"> | |
@stack('button') | |
@yield('body') | |
</div> | |
</div> | |
</div> | |
<script src="{{ asset('assets/js/jquery.min.js') }}"></script> | |
<script src="{{ asset('assets/js/bootstra.min.js') }}"></script> | |
<script src="{{ asset('assets/plugins/toastr/toastr.min.js') }}"></script> | |
<script> | |
toastr.options = { | |
"progressBar": true | |
}; | |
</script> | |
@if(session()->has("notice")) | |
@php | |
$values = session()->get('notice'); | |
@endphp | |
@if (is_array($values)) | |
<script> | |
@foreach ($values as $value) | |
@if ($value['type'] == 'success') | |
toastr["success"]("{{ $value['content'] }}"); | |
@endif | |
@endforeach | |
</script> | |
@endif | |
@php | |
session()->forget('notice'); | |
@endphp | |
@endif | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment