mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Loop through fields array
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
1fa624420e
commit
7a5fcfb87a
|
@ -129,7 +129,7 @@
|
||||||
|
|
||||||
|
|
||||||
<div class="col-md-12" style="padding-top: 5px;">
|
<div class="col-md-12" style="padding-top: 5px;">
|
||||||
@if(!empty($user->email))
|
@if (!empty($user->email))
|
||||||
<form action="{{ route('profile.email_assets') }}" method="POST">
|
<form action="{{ route('profile.email_assets') }}" method="POST">
|
||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
<button style="width: 100%;" class="btn btn-sm btn-primary hidden-print" rel="noopener">{{ trans('admin/users/general.email_assigned') }}</button>
|
<button style="width: 100%;" class="btn btn-sm btn-primary hidden-print" rel="noopener">{{ trans('admin/users/general.email_assigned') }}</button>
|
||||||
|
@ -404,6 +404,11 @@
|
||||||
<th class="col-md-2" data-switchable="true" data-visible="true">{{ trans('general.name') }}</th>
|
<th class="col-md-2" data-switchable="true" data-visible="true">{{ trans('general.name') }}</th>
|
||||||
<th class="col-md-2" data-switchable="true" data-visible="true">{{ trans('admin/hardware/table.asset_model') }}</th>
|
<th class="col-md-2" data-switchable="true" data-visible="true">{{ trans('admin/hardware/table.asset_model') }}</th>
|
||||||
<th class="col-md-3" data-switchable="true" data-visible="true">{{ trans('admin/hardware/table.serial') }}</th>
|
<th class="col-md-3" data-switchable="true" data-visible="true">{{ trans('admin/hardware/table.serial') }}</th>
|
||||||
|
|
||||||
|
@foreach ($field_array as $db_column => $field_name)
|
||||||
|
<th class="col-md-1" data-switchable="true" data-visible="true">{{ $field_name }}</th>
|
||||||
|
@endforeach
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -459,6 +464,11 @@
|
||||||
<img src="{{ Storage::disk('public')->url(app('models_upload_path').e($asset->model->image)) }}" height="50" width="50">
|
<img src="{{ Storage::disk('public')->url(app('models_upload_path').e($asset->model->image)) }}" height="50" width="50">
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
@foreach ($field_array as $db_column => $field_value)
|
||||||
|
<td>{{ $asset->{$db_column} }} skjgh</td>
|
||||||
|
@endforeach
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
@php
|
@php
|
||||||
$assignedCounter++
|
$assignedCounter++
|
||||||
|
@ -551,7 +561,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($user->accessories as $accessory)
|
@foreach ($user->accessories as $accessory)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! $accessory->name !!}</td>
|
<td>{{ $accessory->name }}</td>
|
||||||
<td>
|
<td>
|
||||||
{!! Helper::formatCurrencyOutput($accessory->purchase_cost) !!}
|
{!! Helper::formatCurrencyOutput($accessory->purchase_cost) !!}
|
||||||
</td>
|
</td>
|
||||||
|
@ -599,7 +609,7 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($user->consumables as $consumable)
|
@foreach ($user->consumables as $consumable)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{!! $consumable->name !!}</td>
|
<td>{{ $consumable->name }}</td>
|
||||||
<td>
|
<td>
|
||||||
{!! Helper::formatCurrencyOutput($consumable->purchase_cost) !!}
|
{!! Helper::formatCurrencyOutput($consumable->purchase_cost) !!}
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in a new issue