todo/resources/views/home.blade.php

91 lines
2.6 KiB
PHP
Raw Normal View History

2020-06-23 04:40:37 +00:00
@extends('layout.admin')
@section('title')
Welcome
@endsection
@section('subtitle')
Do you have any task today ?
@endsection
@section('top-button')
2020-06-23 16:33:05 +00:00
<button class="btn btn-info btn-sm" data-toggle="modal" data-target="#modal-default">
2020-06-23 17:45:04 +00:00
Create Directory
2020-06-23 04:40:37 +00:00
</button>
@endsection
2020-06-23 16:33:05 +00:00
@section('css')
<style>
.widget-user {
cursor: pointer;
}
</style>
@endsection
2020-06-23 04:40:37 +00:00
@section('content')
2020-06-23 16:33:05 +00:00
<input type="text" class="form-control" placeholder="Search" id="search-todo"/>
2020-06-23 04:40:37 +00:00
<br/>
<!-- /.box -->
<div class="row">
2020-06-23 16:33:05 +00:00
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="box box-widget widget-user">
<!-- Add the bg color to the header using any of the bg-* classes -->
<div class="widget-user-header bg-aqua-active">
<h3 class="widget-user-username">Alexander Pierce</h3>
<h5 class="widget-user-desc">Founder &amp; CEO</h5>
</div>
</div>
</div>
</div>
2020-06-23 04:40:37 +00:00
2020-06-23 16:33:05 +00:00
<div class="modal fade" id="modal-default">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Default Modal</h4>
</div>
<div class="modal-body">
<p>One fine body&hellip;</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
2020-06-23 04:40:37 +00:00
</div>
</div>
2020-06-23 16:33:05 +00:00
<!-- /.modal-content -->
2020-06-23 04:40:37 +00:00
</div>
2020-06-23 16:33:05 +00:00
<!-- /.modal-dialog -->
2020-06-23 04:40:37 +00:00
</div>
2020-06-23 16:33:05 +00:00
<!-- /.modal -->
@endsection
@section('js')
<script type="application/javascript">
$(document).bind('keydown', function (e) {
// CTRL + S
if (e.ctrlKey && e.which === 83) {
toastr.error("Prevented");
return false;
}
// CTRL + F
if (e.ctrlKey && e.which === 70) {
$("#search-todo").focus();
return false;
}
2020-06-23 17:45:04 +00:00
// ALT + N
if (e.altKey && e.which === 78) {
2020-06-23 16:33:05 +00:00
$("#modal-default").modal('show');
return false;
}
});
$(document).ready(function () {
});
</script>
2020-06-23 04:40:37 +00:00
@endsection