Skip to content

Commit 5266b2c

Browse files
committed
Added notes field to view blades
Signed-off-by: snipe <[email protected]>
1 parent 94dded3 commit 5266b2c

File tree

6 files changed

+50
-1
lines changed

6 files changed

+50
-1
lines changed

resources/views/accessories/edit.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
</div>
3636
@endif
3737

38+
@include ('partials.forms.edit.notes')
39+
3840
@include ('partials.forms.edit.image-upload')
3941

4042
@stop

resources/views/accessories/view.blade.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,20 @@ class="table table-striped snipe-table"
102102
<a href="{{ route('checkout/accessory', $accessory->id) }}" style="margin-right:5px;" class="btn btn-primary btn-sm" {{ (($accessory->numRemaining() > 0 ) ? '' : ' disabled') }}>{{ trans('general.checkout') }}</a>
103103
@endcan
104104
</div>
105+
106+
@if ($accessory->notes)
107+
108+
<div class="col-md-12">
109+
<strong>
110+
{{ trans('general.notes') }}
111+
</strong>
112+
</div>
113+
<div class="col-md-12">
114+
{!! nl2br(e($accessory->notes)) !!}
115+
</div>
116+
</div>
117+
@endif
118+
105119
</div>
106120
</div>
107121
@stop

resources/views/components/edit.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
</div>
3434
@endif
3535

36+
@include ('partials.forms.edit.notes')
37+
3638
@include ('partials.forms.edit.image-upload')
3739

3840
@stop

resources/views/components/view.blade.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,20 @@ class="table table-striped snipe-table"
135135
<div class="col-md-12" style="padding-bottom: 5px;"><strong>{{ trans('general.order_number') }}:</strong>
136136
{{ $component->order_number }} </div>
137137
@endif
138+
139+
@if ($component->notes)
140+
141+
<div class="col-md-12">
142+
<strong>
143+
{{ trans('general.notes') }}
144+
</strong>
145+
</div>
146+
<div class="col-md-12">
147+
{!! nl2br(e($component->notes)) !!}
148+
</div>
149+
</div>
150+
@endif
151+
138152
</div>
139153
</div> <!-- .row-->
140154

resources/views/consumables/edit.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@
3333
</div>
3434
@endif
3535

36+
@include ('partials.forms.edit.notes')
37+
3638
@include ('partials.forms.edit.image-upload')
3739
@stop

resources/views/consumables/view.blade.php

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,26 @@ class="table table-striped snipe-table"
117117
</div>
118118
@endif
119119

120-
@can('checkout', \App\Models\Accessory::class)
120+
@can('checkout', \App\Models\Consumable::class)
121121
<div class="col-md-12">
122122
<a href="{{ route('checkout/consumable', $consumable->id) }}" style="padding-bottom:5px;" class="btn btn-primary btn-sm" {{ (($consumable->numRemaining() > 0 ) ? '' : ' disabled') }}>{{ trans('general.checkout') }}</a>
123123
</div>
124124
@endcan
125+
126+
@if ($consumable->notes)
127+
128+
<div class="col-md-12">
129+
<strong>
130+
{{ trans('general.notes') }}
131+
</strong>
132+
</div>
133+
<div class="col-md-12">
134+
{!! nl2br(e($consumable->notes)) !!}
135+
</div>
136+
</div>
137+
@endif
138+
139+
125140
</div> <!-- /.col-md-3-->
126141
</div> <!-- /.row-->
127142

0 commit comments

Comments
 (0)