adds notes to the accessories tab under users

This commit is contained in:
Godfrey M 2022-12-20 10:37:19 -08:00
parent 88291cadc1
commit e791e6592a

View file

@ -750,18 +750,20 @@
}'> }'>
<thead> <thead>
<tr> <tr>
<th class="col-md-5">{{ trans('general.name') }}</th> <th class="col-md-5">{{ trans('general.name') }}</th>
<th class="col-md-6" data-footer-formatter="sumFormatter" data-fieldname="purchase_cost">{{ trans('general.purchase_cost') }}</th> <th class-="col-md-5" data-fieldname="note">{{ trans('general.notes') }}</th>
<th class="col-md-1 hidden-print">{{ trans('general.action') }}</th> <th class="col-md-1" data-footer-formatter="sumFormatter" data-fieldname="purchase_cost">{{ trans('general.purchase_cost') }}</th>
<th class="col-md-1 hidden-print">{{ trans('general.action') }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@foreach ($user->accessories as $accessory) @foreach ($user->accessories as $accessory)
<tr> <tr>
<td>{!!$accessory->present()->nameUrl()!!}</td> <td>{!!$accessory->present()->nameUrl()!!}</td>
<td> <td>{!! $accessory->pivot->note !!}</td>
<td>
{!! Helper::formatCurrencyOutput($accessory->purchase_cost) !!} {!! Helper::formatCurrencyOutput($accessory->purchase_cost) !!}
</td> </td>
<td class="hidden-print"> <td class="hidden-print">
@can('checkin', $accessory) @can('checkin', $accessory)
<a href="{{ route('accessories.checkin.show', array('accessoryID'=> $accessory->pivot->id, 'backto'=>'user')) }}" class="btn btn-primary btn-sm hidden-print">{{ trans('general.checkin') }}</a> <a href="{{ route('accessories.checkin.show', array('accessoryID'=> $accessory->pivot->id, 'backto'=>'user')) }}" class="btn btn-primary btn-sm hidden-print">{{ trans('general.checkin') }}</a>