Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions public/css/dashboard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/* navbar */
.sign-out {
background-color: #084ba2;
border-radius: 7px;
color: white !important;
transition: 0.2s ease-out;
}

.sign-out:hover {
background-color: #073f89;
}

.navbar-brand img {
width: 50px;
}

.navbar-brand span {
line-height: 20px;
}

/* =================================== */
.heading-text {
width: 100vw;
background-size: cover;
background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("https://res.cloudinary.com/tmakinde/image/upload/q_auto:low/Myinstitution%20Images/img3_u2mek3.jpg");
background: -webkit-linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("https://res.cloudinary.com/tmakinde/image/upload/q_auto:low/Myinstitution%20Images/img3_u2mek3.jpg");
background-attachment: fixed;
overflow-x: hidden;

}

.heading-text h2 {
font-family: 'Open Sans', sans-serif;
;

padding: 20vh 0px 20vh 0px;
color: #E7E5DF;
font-weight: bolder;

}

.heading-text img {

padding: 0;
width: 100vw;


}

.about-img {
width: 100%;
border-radius: 54% 46% 22% 78% / 43% 53% 47% 57%;
border: 0.2px solid #eeeeef;
}

p {
font-size: 17px !important;
}

.icons svg {
transition: 0.3s ease-out;

}

.icons svg:hover {
transform: scale(1.2);
transition: 0.3s ease-out;
}

.footer-link {
text-decoration: none !important;
}

footer {
background: rgba(0, 0, 0, 0.08);
}

footer img {
width: 100vw;
padding: 0;
}

footer .container {
max-width: 500px;
}

.footer-logo {
width: 80px;
}
6 changes: 6 additions & 0 deletions public/js/assets/dashboard.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$(function(){
AOS.init({
easing:'ease',
duration:700,
});
});
143 changes: 72 additions & 71 deletions resources/views/Admin/Admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,81 +5,82 @@
@endsection

@section('content')
<div class="container mt-5 pt-5">
<table class="table table-bordered mt-5">
<thead>
<tr>
<th scope="col">Username</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
@foreach ($currentInstitutionAdmins as $Admins)
<tr>
<td id = "usernameColumn">{{ $Admins->username }}</td>
<td id = "passwordColumn" style = "display:none">{{ $Admins->password }}</td>
<td>
<form method = 'post' action = "{{route('Delete-Admin', ['id' => $Admins->id])}}">
<div class="container mt-5 pt-5">
<table class="table table-bordered mt-5">
<thead>
<tr>
<th scope="col">Username</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
@foreach ($currentInstitutionAdmins as $Admins)
<tr>
<td id="usernameColumn">{{ $Admins->username }}</td>
<td id="passwordColumn" style="display:none">{{ $Admins->password }}</td>
<td>
<form method='post' action="{{route('Delete-Admin', ['id' => $Admins->id])}}">
@csrf
<button class="btn btn-danger" type="submit">Delete</button>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
<!-- Modal Insert-->
<div class="modal fade" id="myModal" tabindex="-2" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role = 'document'>
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> &times; </button>
<h4 class="modal-title" id="myModalLabel" style='margin-top:60px'> Add New Admin</h4>
</div>
<div class="modal-body">
<form id = 'formAdd' action = "{{route('Add-Admin')}}" method = "post">
@csrf
<label>Username</label>
<br>
<input type="text" name='username' required ><br>
<label>Password</label>
<br>
<input type="text" name='password' required ><br>
<input type="hidden" style='margin-top:10px' id = 'action' name = 'action' value = "update">
<input type="submit" style='margin-top:10px' id = 'submit' name = 'submit' value = 'Submit'>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
<!-- Modal Insert-->
<div class="modal fade" id="myModal" tabindex="-2" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role='document'>
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> &times; </button>
</div>
<h5 class="modal-title text-center" id="myModalLabt-2el">Add new admin </h5>
<div class="modal-body ml-4">
<form id='formAdd' action="{{route('Add-Admin')}}" method="post">
@csrf
<div class="form-group ml-2"> <label class="ml-1">Username</label>
<br>
<input class="ml-1 mt-1 " type="text" name='username' required><br>

<label class="ml-1">Password</label>
<br>
<input type="text" name='password' class="ml-1 mt-1 " required><br>
<input type="hidden" style='margin-top:10px' id='action' name='action' value="update">
<input type="submit" style='margin-top:10px' id='submit' name='submit' value='Submit' class="ml-1"></div>

</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-primary" data-dismiss="modal">Close </button>

</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close </button>

</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<div class="text-right pt-3"><button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModal">Add Button</button></div>

</div>
</div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<div class="text-right pt-3 mb-4"><button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModal">Add Button</button></div>

</div>
@endsection
@section('scripts')
<script>
// writing jquery
var i = 0;
$('tr > td >button#editButton').click(function(){
$tr = $(this).closest('tr');
var Value = $tr.children('td').map(function(){
return $(this).text()
}).get()
$('#editUsername').val(Value[0]);
$('#editPassword').val($('#passwordColumn').text());
})
// get username
// $('#editUsername').val(username); // insert username
</script>
<script type="text/javascript" src="{{asset('js/Admin.js')}}"></script>
<script type="text/javascript" src="{{asset('js/sign-in-page/js/jquery-3.5.1.min.js')}}"></script>
<script type="text/javascript" src="{{asset('js/sign-in-page/js//bootstrap.min.js')}}"></script>
<script>
// writing jquery
var i = 0;

$('tr > td >button#editButton').click(function() {
$tr = $(this).closest('tr');
var Value = $tr.children('td').map(function() {
return $(this).text()
}).get()
$('#editUsername').val(Value[0]);
$('#editPassword').val($('#passwordColumn').text());
})
// get username
// $('#editUsername').val(username); // insert username
</script>
<script type="text/javascript" src="{{asset('js/Admin.js')}}"></script>
<script type="text/javascript" src="{{asset('js/sign-in-page/js/jquery-3.5.1.min.js')}}"></script>

<script type="text/javascript" src="{{asset('js/sign-in-page/js//bootstrap.min.js')}}"></script>
@parent
@endsection
@endsection
4 changes: 2 additions & 2 deletions resources/views/Admin/Class.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
@section('content')
<div class="container mt-5 pt-5" >

<h4 class ="well mb-4">CLASSES</h4>
<h4 class ="well mb-4">Classes</h4>
<form action = "{{route('Add-Class')}}" method = "post">
@csrf
<input type = "text" name = "class" placeholder ="Input Class Name here">
<input type ="Submit" value ="Add">
<input type ="Submit" value ="+Add">
</form>

<table class="table mt-5 table-bordered">
Expand Down
22 changes: 11 additions & 11 deletions resources/views/Admin/Dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@
@section('content')
<!-- Carousel -->
<div class="heading-text text-center pt-5">
<h2 class="m-0">{{$currentInstitution->name}}<br>
<h2 class="m-0" data-aos="zoom-in">{{$currentInstitution->name}}<br>
Online Educational<br> Platform</h2>
<img src="https://res.cloudinary.com/sam-kay/image/upload/v1614877353/tolu/Untitled_1_p6alhw.png" alt="">
</div>
<!-- About-->
<section class="container mt-4 p-md-5">
<h1 class="text-center text-primary mb-4">About Us</h1>
<div class="row about mb-5">
<div class="col-md about-text d-flex align-items-md-center ">
<div class="row about mb-5 ">
<div class="col-md about-text d-flex align-items-md-center " data-aos="fade-right">
<p class="py-4 order-last order-md-1">This is an institution platform where any institution can signup and get started in giving their student access to online courses which they prepare for themselves
It's purpose is to be able to connect different schools or tutorial centres on a single platform.</p>
</div>
<div class="col-md order-first order-md-2">
<img class="about-img my-5" src="https://res.cloudinary.com/sam-kay/image/upload/q_auto:low/tolu/about_u17yqh.jpg" alt="">
<img class="about-img my-5" src="https://res.cloudinary.com/sam-kay/image/upload/q_auto:low/tolu/about_u17yqh.jpg" alt="" data-aos="fade-left">
</div>
</div>
<!-- End of About-->
<h1 class="text-center text-primary mt-4 mb-4">FAQs</h1>
<!-- Our Offer -->
<div class="panel-group w-75 py-5" id="accordion">
<div class="panel panel-default card mb-4">
<div class="panel panel-default card mb-4" data-aos="fade-down">
<div class="panel-heading card-header">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse0">
Expand All @@ -41,7 +41,7 @@
</div>
</div>
</div>
<div class="panel panel-default card mb-4">
<div class="panel panel-default card mb-4" data-aos="fade-down">
<div class="panel-heading card-header">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse1">
Expand All @@ -55,7 +55,7 @@
</div>
</div>
</div>
<div class="panel panel-default card mb-4">
<div class="panel panel-default card mb-4" data-aos="fade-down">
<div class="panel-heading card-header">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse2">
Expand Down Expand Up @@ -86,7 +86,7 @@
</div>
</div>
</div>
<div class="panel panel-default card mb-4">
<div class="panel panel-default card mb-4" data-aos="fade-down">
<div class="panel-heading card-header">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse3">
Expand All @@ -111,7 +111,7 @@
</div>
</div>
</div>
<div class="panel panel-default card mb-4">
<div class="panel panel-default card mb-4" data-aos="fade-down">
<div class="panel-heading card-header">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse4">
Expand All @@ -125,7 +125,7 @@
</div>
</div>
</div>
<div class="panel panel-default card mb-4">
<div class="panel panel-default card mb-4" data-aos="fade-down">
<div class="panel-heading card-header">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse5">
Expand All @@ -139,7 +139,7 @@
</div>
</div>
</div>
<div class="panel panel-default card mb-4">
<div class="panel panel-default card mb-4" data-aos="fade-down" >
<div class="panel-heading card-header">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion" href="#collapse6">
Expand Down
2 changes: 1 addition & 1 deletion resources/views/Admin/Subject.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<button class="btn btn-danger" type="submit">Delete</button>
</form>
</td>
<td id = "usernameColumn" style = "text-align:center"><a href = "{{route('Topic-Section', ['id' => $subject->id])}}"button class ="btn btn-primary">Click here to create topic</td>
<td id = "usernameColumn" style = "text-align:center"><a href = "{{route('Topic-Section', ['id' => $subject->id])}}"button class ="btn btn-primary">create topic</td>
</tr>
@endforeach
</tbody>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/Admin/Topic.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
<label>Would you like to upload a File ?</label><br>
<input type = "file" name = "file"><br>
<hr>
<input type ="Submit" id = "AddSubmit" value ="Submit">
<input type ="Submit" id = "AddSubmit" class="btn btn-primary" value ="Submit">
</form>
<h4 class ="well mb-4">Previous Topic under {{$subject->Subjectname}}</h4>
<h4 class ="well mb-4 mt-3">Previous Topic under {{$subject->Subjectname}}</h4>
<table class="table mt-5 table-bordered table-hoverd ">
<thead>
<tr>
Expand Down
Loading