163 lines
7.3 KiB
PHP
Executable File
163 lines
7.3 KiB
PHP
Executable File
@extends('layouts.vertical', ["page_title"=> "Sweet Alerts"])
|
|
|
|
@section('css')
|
|
<!-- third party css -->
|
|
<link href="{{asset('assets/libs/sweetalert2/sweetalert2.min.css')}}" rel="stylesheet" type="text/css" />
|
|
<!-- third party css end -->
|
|
@endsection
|
|
|
|
@section('content')
|
|
<!-- Start Content-->
|
|
<div class="container-fluid">
|
|
|
|
<!-- start page title -->
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="page-title-box">
|
|
<div class="page-title-right">
|
|
<ol class="breadcrumb m-0">
|
|
<li class="breadcrumb-item"><a href="javascript: void(0);">UBold</a></li>
|
|
<li class="breadcrumb-item"><a href="javascript: void(0);">Extended UI</a></li>
|
|
<li class="breadcrumb-item active">Sweet Alerts</li>
|
|
</ol>
|
|
</div>
|
|
<h4 class="page-title">Sweet Alerts</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<h4 class="header-title">Examples</h4>
|
|
|
|
<p class="sub-header">
|
|
A beautiful, responsive, customizable, accessible (WAI-ARIA) replacement for JavaScript's popup boxes
|
|
</p>
|
|
|
|
<table class="table table-borderless table-centered mb-0">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th style="width:50%;">Alert Type</th>
|
|
<th>Example</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>A basic message</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="sa-basic">Click me</button>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>A title with a text under</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="sa-title">Click me</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>A success message!</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="sa-success">Click me</button>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>A modal window with a long content inside:</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="sa-long-content">Click me</button>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>A custom positioned dialog</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="sa-custom-position">Click me</button>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>A modal with a title, an error icon, a text, and a footer</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="sa-error">Click me</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>A confirm dialog, with a function attached to the "Confirm"-button...</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="sa-warning">Click me</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>By passing a parameter, you can execute something else for "Cancel".</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="sa-params">Click me</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>A message with custom Image Header</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="sa-image">Click me</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>A message with auto close timer</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="sa-close">Click me</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Custom HTML description and buttons</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="custom-html-alert">Click me</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>A message with custom width, padding and background</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="custom-padding-width-alert">Click me</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Ajax request example</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="ajax-alert">Click me</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Chaining modals (queue) example</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="chaining-alert">Click me</button>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Dynamic queue example</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info btn-xs" id="dynamic-alert">Click me</button>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
</div> <!-- end card-body -->
|
|
</div> <!-- end card-->
|
|
</div>
|
|
<!-- end col -->
|
|
</div>
|
|
<!-- end row -->
|
|
|
|
</div> <!-- container -->
|
|
@endsection
|
|
|
|
@section('script')
|
|
<!-- third party js -->
|
|
<script src="{{asset('assets/libs/sweetalert2/sweetalert2.min.js')}}"></script>
|
|
<!-- third party js ends -->
|
|
|
|
<!-- demo app -->
|
|
<script src="{{asset('assets/js/pages/sweet-alerts.init.js')}}"></script>
|
|
<!-- end demo js-->
|
|
@endsection
|