Skip to content

Commit bb754b9

Browse files
committed
Prettier code format
1 parent 5e97831 commit bb754b9

File tree

150 files changed

+4690
-2942
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+4690
-2942
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ node_modules
22
dist
33
.env*
44
vendor/
5+
/storage
56
/vendor
67
public/
78
.git
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
@extends('backend.layouts.app')
1+
@extends("backend.layouts.app")
22

3-
@section('title')
3+
@section("title")
44
{{ __($module_action) }} {{ __($module_title) }}
55
@endsection
66

7-
@section('breadcrumbs')
7+
@section("breadcrumbs")
88
<x-backend.breadcrumbs>
9-
<x-backend.breadcrumb-item route='{{ route("backend.$module_name.index") }}' icon='{{ $module_icon }}'>
9+
<x-backend.breadcrumb-item route='{{ route("backend.$module_name.index") }}' icon="{{ $module_icon }}">
1010
{{ __($module_title) }}
1111
</x-backend.breadcrumb-item>
1212
<x-backend.breadcrumb-item type="active">{{ __($module_action) }}</x-backend.breadcrumb-item>
1313
</x-backend.breadcrumbs>
1414
@endsection
1515

16-
@section('content')
17-
<x-backend.layouts.create :module_name="$module_name" :module_path="$module_path" :module_title="$module_title" :module_icon="$module_icon" :module_action="$module_action" />
16+
@section("content")
17+
<x-backend.layouts.create
18+
:module_name="$module_name"
19+
:module_path="$module_path"
20+
:module_title="$module_title"
21+
:module_icon="$module_icon"
22+
:module_action="$module_action"
23+
/>
1824
@endsection
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
@extends('backend.layouts.app')
1+
@extends("backend.layouts.app")
22

3-
@section('title')
3+
@section("title")
44
{{ __($module_action) }} {{ __($module_title) }}
55
@endsection
66

7-
@section('breadcrumbs')
7+
@section("breadcrumbs")
88
<x-backend.breadcrumbs>
9-
<x-backend.breadcrumb-item route='{{ route("backend.$module_name.index") }}' icon='{{ $module_icon }}'>
9+
<x-backend.breadcrumb-item route='{{ route("backend.$module_name.index") }}' icon="{{ $module_icon }}">
1010
{{ __($module_title) }}
1111
</x-backend.breadcrumb-item>
1212
<x-backend.breadcrumb-item type="active">{{ __($module_action) }}</x-backend.breadcrumb-item>
1313
</x-backend.breadcrumbs>
1414
@endsection
1515

16-
@section('content')
17-
<x-backend.layouts.edit :data="$$module_name_singular" :module_name="$module_name" :module_path="$module_path" :module_title="$module_title" :module_icon="$module_icon"
18-
:module_action="$module_action" />
16+
@section("content")
17+
<x-backend.layouts.edit
18+
:data="$$module_name_singular"
19+
:module_name="$module_name"
20+
:module_path="$module_path"
21+
:module_title="$module_title"
22+
:module_icon="$module_icon"
23+
:module_action="$module_action"
24+
/>
1925
@endsection

Modules/Category/Resources/views/backend/categories/form.blade.php

+65-47
Original file line numberDiff line numberDiff line change
@@ -2,71 +2,84 @@
22
<div class="col-12 col-sm-4 mb-3">
33
<div class="form-group">
44
<?php
5-
$field_name = 'name';
5+
$field_name = "name";
66
$field_lable = label_case($field_name);
77
$field_placeholder = $field_lable;
8-
$required = 'required';
8+
$required = "required";
99
?>
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"]) }}
1213
</div>
1314
</div>
1415
<div class="col-12 col-sm-4 mb-3">
1516
<div class="form-group">
1617
<?php
17-
$field_name = 'slug';
18+
$field_name = "slug";
1819
$field_lable = label_case($field_name);
1920
$field_placeholder = $field_lable;
20-
$required = '';
21+
$required = "";
2122
?>
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"]) }}
2426
</div>
2527
</div>
2628
<div class="col-12 col-sm-4 mb-3">
2729
<div class="form-group">
2830
<?php
29-
$field_name = 'group_name';
31+
$field_name = "group_name";
3032
$field_lable = label_case($field_name);
3133
$field_placeholder = $field_lable;
32-
$required = '';
34+
$required = "";
3335
?>
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"]) }}
3639
</div>
3740
</div>
3841
</div>
3942
<div class="row mb-3">
4043
<div class="col-8">
4144
<div class="form-group">
4245
<?php
43-
$field_name = 'image';
46+
$field_name = "image";
4447
$field_lable = label_case($field_name);
4548
$field_placeholder = $field_lable;
46-
$required = '';
49+
$required = "";
4750
?>
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"]) }}
5054
</div>
5155
</div>
5256

5357
@if ($data && $data->getMedia($module_name)->first())
5458
<div class="col-4">
5559
<div class="float-end">
5660
<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+
/>
6171
</a>
6272
<!-- <figcaption class="figure-caption">Path: </figcaption> -->
6373
</figure>
6474
<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>
7083
</div>
7184
</div>
7285
</div>
@@ -77,52 +90,56 @@ class="figure-img img-fluid rounded img-thumbnail" alt="">
7790
<div class="col-12 mb-3">
7891
<div class="form-group">
7992
<?php
80-
$field_name = 'description';
93+
$field_name = "description";
8194
$field_lable = label_case($field_name);
8295
$field_placeholder = $field_lable;
83-
$required = '';
96+
$required = "";
8497
?>
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"]) }}
87101
</div>
88102
</div>
89103
</div>
90-
<hr>
104+
<hr />
91105
<div class="row">
92106
<div class="col-12 col-sm-4 mb-3">
93107
<div class="form-group">
94108
<?php
95-
$field_name = 'meta_title';
109+
$field_name = "meta_title";
96110
$field_lable = label_case($field_name);
97111
$field_placeholder = $field_lable;
98-
$required = '';
112+
$required = "";
99113
?>
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"]) }}
102117
</div>
103118
</div>
104119
<div class="col-12 col-sm-4 mb-3">
105120
<div class="form-group">
106121
<?php
107-
$field_name = 'meta_keyword';
122+
$field_name = "meta_keyword";
108123
$field_lable = label_case($field_name);
109124
$field_placeholder = $field_lable;
110-
$required = '';
125+
$required = "";
111126
?>
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"]) }}
114130
</div>
115131
</div>
116132
<div class="col-12 col-sm-4 mb-3">
117133
<div class="form-group">
118134
<?php
119-
$field_name = 'meta_description';
135+
$field_name = "meta_description";
120136
$field_lable = label_case($field_name);
121137
$field_placeholder = $field_lable;
122-
$required = '';
138+
$required = "";
123139
?>
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"]) }}
126143
</div>
127144
</div>
128145
</div>
@@ -131,14 +148,15 @@ class="figure-img img-fluid rounded img-thumbnail" alt="">
131148
<div class="col-12 col-sm-4">
132149
<div class="form-group">
133150
<?php
134-
$field_name = 'status';
151+
$field_name = "status";
135152
$field_lable = label_case($field_name);
136-
$field_placeholder = '-- Select an option --';
137-
$required = 'required';
153+
$field_placeholder = "-- Select an option --";
154+
$required = "required";
138155
$select_options = \Modules\Category\Enums\CategoryStatus::toArray();
139156
?>
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"]) }}
142160
</div>
143161
</div>
144162
</div>

0 commit comments

Comments
 (0)