-
Notifications
You must be signed in to change notification settings - Fork 2
/
addrooms.blade.php
124 lines (99 loc) · 5.56 KB
/
addrooms.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
@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>
<form method="POST" action="/addrooms">
@csrf
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
<div class="form-group row">
<label for="hostel" class="col-md-4 col-form-label text-md-right">{{ __('Which Hostel :') }}</label>
<div class="col-md-6">
<select class="custom-select my-1 mr-sm-2" id="hostel" name="hostel">
<option selected>Choose...</option>
<option value="Female">Girls'</option>
<option value="Male">Boys'</option>
</select>
@error('hostel')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<!-- @if(auth()->user()->hostel=='Female') -->
<div class="form-group row">
<label for="category" class="col-md-4 col-form-label text-md-right">{{ __('Category :') }}</label>
<div class="col-md-6">
<select class="custom-select my-1 mr-sm-2" id="category" name="category">
<option selected>Choose...</option>
<option value="0">Btech</option>
<option value="1">MBA/MCA</option>
</select>
@error('category')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<!-- @endif -->
<div class="form-group row">
<label for="year" class="col-md-4 col-form-label text-md-right">{{ __('Year:') }}</label>
<div class="col-md-6">
<select class="custom-select my-1 mr-sm-2" id="year" name="year">
<option selected>Choose...</option>
<option value="2">Second</option>
<option value="3">Third</option>
<option value="4">Fourth</option>
</select>
@error('year')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group row">
<label for="from" class="col-md-4 col-form-label text-md-right">{{ __('From') }}</label>
<div class="col-md-6">
<input id="from" type="text" class="form-control @error('from') is-invalid @enderror" name="name" value="{{ old('from') }}" required autocomplete="from" autofocus>
@error('from')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group row">
<label for="to" class="col-md-4 col-form-label text-md-right">{{ __('To') }}</label>
<div class="col-md-6">
<input id="to" type="text" class="form-control @error('to') is-invalid @enderror" name="to" value="{{ old('to') }}" required autocomplete="to" autofocus>
@error('to')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="form-group row mb-0">
<div class="col-md-6 offset-md-4">
<button type="submit" class="btn btn-primary">
{{ __('submit') }}
</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@endsection