1 | @extends("layouts.dashboard")
|
---|
2 |
|
---|
3 | @section("title", "Add new category - Dashboard | TechnoBlog")
|
---|
4 |
|
---|
5 | @section("dashboard_content")
|
---|
6 |
|
---|
7 | <div class="my-3 my-md-5">
|
---|
8 |
|
---|
9 | <div class="container">
|
---|
10 |
|
---|
11 | <div class="row">
|
---|
12 |
|
---|
13 | <div class="col-sm-12">
|
---|
14 |
|
---|
15 | <form class="card actionForm" action="{{ route("dashboard.categories.store") }}" method="post" accept-charset="UTF-8">
|
---|
16 |
|
---|
17 | <nav aria-label="breadcrumb">
|
---|
18 | <ol class="breadcrumb" style="border-radius: 0px !important;">
|
---|
19 | <li class="breadcrumb-item">
|
---|
20 | <a href="{{ route("dashboard.index") }}">Dashboard</a>
|
---|
21 | </li>
|
---|
22 | <li class="breadcrumb-item">
|
---|
23 | <a href="{{ route("dashboard.categories.index") }}">Categories</a>
|
---|
24 | </li>
|
---|
25 | <li class="breadcrumb-item active" aria-current="page">Add New</li>
|
---|
26 | </ol>
|
---|
27 | </nav>
|
---|
28 |
|
---|
29 | <div class="card-body">
|
---|
30 |
|
---|
31 | <h3 class="card-title border-bottom pb-4">Add new category to your blog</h3>
|
---|
32 |
|
---|
33 | @csrf
|
---|
34 |
|
---|
35 | <div class="row">
|
---|
36 |
|
---|
37 | <div class="col-md-6 m-auto">
|
---|
38 |
|
---|
39 | <fieldset class="form-fieldset">
|
---|
40 |
|
---|
41 | <p class="text-dark pb-4">Please note that the new category will be unavailable for users until publishing your first post.</p>
|
---|
42 |
|
---|
43 | <div class="form-group">
|
---|
44 | <label class="form-label">Name</label>
|
---|
45 | <input type="text" name="name" value="{{ old("name") }}" autocomplete="off" class="form-control" required>
|
---|
46 | </div>
|
---|
47 |
|
---|
48 | <div class="form-group">
|
---|
49 | <label class="form-label">Choose color for new category</label>
|
---|
50 | <div class="input-group">
|
---|
51 | <input type="text" name="color" value="{{ old("color") }}" class="form-control categoryColor" autocomplete="off" required>
|
---|
52 | </div>
|
---|
53 | </div>
|
---|
54 |
|
---|
55 | </fieldset>
|
---|
56 |
|
---|
57 | </div>
|
---|
58 |
|
---|
59 | </div>
|
---|
60 |
|
---|
61 | </div>
|
---|
62 |
|
---|
63 | <div class="card-footer text-right">
|
---|
64 | <input type="submit" value="Create category" class="submitBtn btn btn-primary">
|
---|
65 | </div>
|
---|
66 |
|
---|
67 | </form>
|
---|
68 |
|
---|
69 | </div>
|
---|
70 |
|
---|
71 | </div>
|
---|
72 |
|
---|
73 | </div>
|
---|
74 |
|
---|
75 | </div>
|
---|
76 |
|
---|
77 | @endsection
|
---|