2
2
<div class =" col-12 col-sm-4 mb-3" >
3
3
<div class =" form-group" >
4
4
<?php
5
- $field_name = ' name' ;
5
+ $field_name = " name" ;
6
6
$field_lable = label_case ($field_name );
7
7
$field_placeholder = $field_lable ;
8
- $required = ' required' ;
8
+ $required = " required" ;
9
9
? >
10
- {{ html ()-> label ($field_lable , $field_name )-> class (' form-label' ) } } {!! field_required ($required ) ! !}
11
- {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (' form-control' )-> attributes ([" $required " ]) } }
10
+
11
+ {{ html ()-> label ($field_lable , $field_name )-> class (" form-label" ) } } {!! field_required ($required ) ! !}
12
+ {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (" form-control" )-> attributes ([" $required " ]) } }
12
13
</div >
13
14
</div >
14
15
<div class =" col-12 col-sm-4 mb-3" >
15
16
<div class =" form-group" >
16
17
<?php
17
- $field_name = ' slug' ;
18
+ $field_name = " slug" ;
18
19
$field_lable = label_case ($field_name );
19
20
$field_placeholder = $field_lable ;
20
- $required = ' ' ;
21
+ $required = " " ;
21
22
? >
22
- {{ html ()-> label ($field_lable , $field_name )-> class (' form-label' ) } } {!! field_required ($required ) ! !}
23
- {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (' form-control' )-> attributes ([" $required " ]) } }
23
+
24
+ {{ html ()-> label ($field_lable , $field_name )-> class (" form-label" ) } } {!! field_required ($required ) ! !}
25
+ {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (" form-control" )-> attributes ([" $required " ]) } }
24
26
</div >
25
27
</div >
26
28
<div class =" col-12 col-sm-4 mb-3" >
27
29
<div class =" form-group" >
28
30
<?php
29
- $field_name = ' group_name' ;
31
+ $field_name = " group_name" ;
30
32
$field_lable = label_case ($field_name );
31
33
$field_placeholder = $field_lable ;
32
- $required = ' ' ;
34
+ $required = " " ;
33
35
? >
34
- {{ html ()-> label ($field_lable , $field_name )-> class (' form-label' ) } } {!! field_required ($required ) ! !}
35
- {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (' form-control' )-> attributes ([" $required " ]) } }
36
+
37
+ {{ html ()-> label ($field_lable , $field_name )-> class (" form-label" ) } } {!! field_required ($required ) ! !}
38
+ {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (" form-control" )-> attributes ([" $required " ]) } }
36
39
</div >
37
40
</div >
38
41
</div >
39
42
<div class =" row mb-3" >
40
43
<div class =" col-8" >
41
44
<div class =" form-group" >
42
45
<?php
43
- $field_name = ' image' ;
46
+ $field_name = " image" ;
44
47
$field_lable = label_case ($field_name );
45
48
$field_placeholder = $field_lable ;
46
- $required = ' ' ;
49
+ $required = " " ;
47
50
? >
48
- {{ html ()-> label ($field_lable , $field_name )-> class (' form-label' ) } } {!! field_required ($required ) ! !}
49
- {{ html ()-> input (' file' , $field_name )-> class (' form-control' )-> attributes ([" $required " ]) } }
51
+
52
+ {{ html ()-> label ($field_lable , $field_name )-> class (" form-label" ) } } {!! field_required ($required ) ! !}
53
+ {{ html ()-> input (" file" , $field_name )-> class (" form-control" )-> attributes ([" $required " ]) } }
50
54
</div >
51
55
</div >
52
56
53
57
@if ($data && $data -> getMedia ($module_name )-> first () )
54
58
<div class =" col-4" >
55
59
<div class =" float-end" >
56
60
<figure class =" figure" >
57
- <a href =" {{ asset ($data -> $field_name ) } }" data-lightbox =" image-set"
58
- data-title =" Path: {{ asset ($data -> $field_name ) } }" >
59
- <img src =" {{ asset ($data -> getMedia ($module_name )-> first ()-> getUrl (' thumb300' )) } }"
60
- class =" figure-img img-fluid rounded img-thumbnail" alt =" " >
61
+ <a
62
+ href =" {{ asset ($data -> $field_name ) } }"
63
+ data-lightbox =" image-set"
64
+ data-title =" Path: {{ asset ($data -> $field_name ) } }"
65
+ >
66
+ <img
67
+ src =" {{ asset ($data -> getMedia ($module_name )-> first ()-> getUrl (" thumb300" ),) } }"
68
+ class =" figure-img img-fluid img-thumbnail rounded"
69
+ alt =" "
70
+ />
61
71
</a >
62
72
<!-- <figcaption class="figure-caption">Path: </figcaption> -->
63
73
</figure >
64
74
<div class =" form-check" >
65
- <input class =" form-check-input" type =" checkbox" value =" image_remove" id =" image_remove"
66
- name =" image_remove" >
67
- <label class =" form-check-label" for =" image_remove" >
68
- Remove this image
69
- </label >
75
+ <input
76
+ class =" form-check-input"
77
+ type =" checkbox"
78
+ value =" image_remove"
79
+ id =" image_remove"
80
+ name =" image_remove"
81
+ />
82
+ <label class =" form-check-label" for =" image_remove" >Remove this image</label >
70
83
</div >
71
84
</div >
72
85
</div >
@@ -77,52 +90,56 @@ class="figure-img img-fluid rounded img-thumbnail" alt="">
77
90
<div class =" col-12 mb-3" >
78
91
<div class =" form-group" >
79
92
<?php
80
- $field_name = ' description' ;
93
+ $field_name = " description" ;
81
94
$field_lable = label_case ($field_name );
82
95
$field_placeholder = $field_lable ;
83
- $required = ' ' ;
96
+ $required = " " ;
84
97
? >
85
- {{ html ()-> label ($field_lable , $field_name )-> class (' form-label' ) } } {!! field_required ($required ) ! !}
86
- {{ html ()-> textarea ($field_name )-> placeholder ($field_placeholder )-> class (' form-control' )-> attributes ([" $required " ]) } }
98
+
99
+ {{ html ()-> label ($field_lable , $field_name )-> class (" form-label" ) } } {!! field_required ($required ) ! !}
100
+ {{ html ()-> textarea ($field_name )-> placeholder ($field_placeholder )-> class (" form-control" )-> attributes ([" $required " ]) } }
87
101
</div >
88
102
</div >
89
103
</div >
90
- <hr >
104
+ <hr / >
91
105
<div class =" row" >
92
106
<div class =" col-12 col-sm-4 mb-3" >
93
107
<div class =" form-group" >
94
108
<?php
95
- $field_name = ' meta_title' ;
109
+ $field_name = " meta_title" ;
96
110
$field_lable = label_case ($field_name );
97
111
$field_placeholder = $field_lable ;
98
- $required = ' ' ;
112
+ $required = " " ;
99
113
? >
100
- {{ html ()-> label ($field_lable , $field_name )-> class (' form-label' ) } } {!! field_required ($required ) ! !}
101
- {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (' form-control' )-> attributes ([" $required " ]) } }
114
+
115
+ {{ html ()-> label ($field_lable , $field_name )-> class (" form-label" ) } } {!! field_required ($required ) ! !}
116
+ {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (" form-control" )-> attributes ([" $required " ]) } }
102
117
</div >
103
118
</div >
104
119
<div class =" col-12 col-sm-4 mb-3" >
105
120
<div class =" form-group" >
106
121
<?php
107
- $field_name = ' meta_keyword' ;
122
+ $field_name = " meta_keyword" ;
108
123
$field_lable = label_case ($field_name );
109
124
$field_placeholder = $field_lable ;
110
- $required = ' ' ;
125
+ $required = " " ;
111
126
? >
112
- {{ html ()-> label ($field_lable , $field_name )-> class (' form-label' ) } } {!! field_required ($required ) ! !}
113
- {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (' form-control' )-> attributes ([" $required " ]) } }
127
+
128
+ {{ html ()-> label ($field_lable , $field_name )-> class (" form-label" ) } } {!! field_required ($required ) ! !}
129
+ {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (" form-control" )-> attributes ([" $required " ]) } }
114
130
</div >
115
131
</div >
116
132
<div class =" col-12 col-sm-4 mb-3" >
117
133
<div class =" form-group" >
118
134
<?php
119
- $field_name = ' meta_description' ;
135
+ $field_name = " meta_description" ;
120
136
$field_lable = label_case ($field_name );
121
137
$field_placeholder = $field_lable ;
122
- $required = ' ' ;
138
+ $required = " " ;
123
139
? >
124
- {{ html ()-> label ($field_lable , $field_name )-> class (' form-label' ) } } {!! field_required ($required ) ! !}
125
- {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (' form-control' )-> attributes ([" $required " ]) } }
140
+
141
+ {{ html ()-> label ($field_lable , $field_name )-> class (" form-label" ) } } {!! field_required ($required ) ! !}
142
+ {{ html ()-> text ($field_name )-> placeholder ($field_placeholder )-> class (" form-control" )-> attributes ([" $required " ]) } }
126
143
</div >
127
144
</div >
128
145
</div >
@@ -131,14 +148,15 @@ class="figure-img img-fluid rounded img-thumbnail" alt="">
131
148
<div class =" col-12 col-sm-4" >
132
149
<div class =" form-group" >
133
150
<?php
134
- $field_name = ' status' ;
151
+ $field_name = " status" ;
135
152
$field_lable = label_case ($field_name );
136
- $field_placeholder = ' -- Select an option --' ;
137
- $required = ' required' ;
153
+ $field_placeholder = " -- Select an option --" ;
154
+ $required = " required" ;
138
155
$select_options = \Modules \Category \Enums \CategoryStatus:: toArray ();
139
156
? >
140
- {{ html ()-> label ($field_lable , $field_name )-> class (' form-label' ) } } {!! field_required ($required ) ! !}
141
- {{ html ()-> select ($field_name , $select_options )-> class (' form-select' )-> attributes ([" $required " ]) } }
157
+
158
+ {{ html ()-> label ($field_lable , $field_name )-> class (" form-label" ) } } {!! field_required ($required ) ! !}
159
+ {{ html ()-> select ($field_name , $select_options )-> class (" form-select" )-> attributes ([" $required " ]) } }
142
160
</div >
143
161
</div >
144
162
</div >
0 commit comments