-
Notifications
You must be signed in to change notification settings - Fork 2
/
home.blade.php
134 lines (94 loc) · 4.27 KB
/
home.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Dashboard</div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
@if(auth()->user()->type=='admin')
<a href="/verifyresults">
<button class="btn btn-primary"> Verify Results</button></a>
<a href="/verifyfees">
<button class="btn btn-primary"> Verify fees</button></a>
<a href='/addrooms'>
<button class="btn btn-primary">Add Rooms</button>
</a>
@endif
@if(auth()->user()->type=='default' && auth()->user()->book_room =='0' )
<h1>Proceed to Room Booking</h1>
<form method="POST" action="home/{{auth()->user()->id}}">
@csrf
<button type="submit" class="btn btn-primary bookroom" id="button" >Book Room</button>
</form>
@endif
@if(auth()->user()->type=='default' && auth()->user()->book_room =='1' &&auth()->user()->result_status =='0' )
<h1>Marksheet verification in process!</h1>
<p>Soon, you will redirected to next step</p>
@endif
@if(auth()->user()->type=='default' && auth()->user()->result_status =='1' && auth()->user()->utr_number =='0' )
<h1>Hostel Fee Payment Detail.</h1>
<form method="POST" action="selectroommates/{{auth()->user()->id}}">
@csrf
@method('POST')
<div class="input-group input-group-lg">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroup-sizing-lg">UTR Number :</span>
</div>
<input type="text" class="form-control" name="utr_number" placeholder="Enter NEFT/RTGS UTR Number" aria-label="Large" aria-describedby="inputGroup-sizing-sm">
</div>
<br>
<div class="button">
<button type="Submit" class="btn btn-info">Submit</button>
</div>
</form>
@if($errors->any())
<div class="alert alert-danger" style="margin-top:20px;">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
@endif
@if(auth()->user()->type=='default' && auth()->user()->fee_status =='0' && auth()->user()->utr_number !='0' )
<h1>Fee verification in process</h1>
<p>Soon, you will redirected to next step.</p>
@endif
@if(auth()->user()->type=='default' && auth()->user()->fee_status =='1' )
<h1>Verification Completed!</h1>
<a href="/searchroommates">
<button class="btn btn-primary">
Search Roommates
</button>
</a>
@endif
</div>
</div>
</div>
</div>
</div>
<!-- <script type="text/javascript">
$('#button').on('click' , function(event){
console.log(event);
});
</script>
});
<script>
$(document).ready(function() {
$('#button').click(function(){
$.ajax({
type:'POST',
url:'/home/{{auth()->user()->id}}',
});
});
});
</script>
-->
@endsection