2023-03-29 16:24:56 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2023-03-30 11:48:05 -07:00
|
|
|
{{ trans('admin/hardware/form.bulk_restore') }}
|
2023-03-29 16:24:56 -07:00
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('header_right')
|
|
|
|
<a href="{{ URL::previous() }}" class="btn btn-primary pull-right">
|
|
|
|
{{ trans('general.back') }}</a>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<!-- left column -->
|
|
|
|
<div class="col-md-12">
|
2023-03-30 11:48:05 -07:00
|
|
|
<p>{{ trans('admin/hardware/form.bulk_restore_help') }}</p>
|
2023-03-29 16:24:56 -07:00
|
|
|
<form class="form-horizontal" method="post" action="{{ route('hardware/bulkrestore') }}" autocomplete="off" role="form">
|
|
|
|
{{csrf_field()}}
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h2 class="box-title" style="color: red">{{ trans('admin/hardware/form.bulk_restore_warn', ['asset_count' => count($assets)]) }}</h2>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="box-body">
|
|
|
|
<table class="table table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>{{ trans('admin/hardware/table.id') }}</td>
|
2023-11-28 07:56:20 -08:00
|
|
|
<td>{{ trans('admin/hardware/form.name') }}</td>
|
2023-03-29 16:24:56 -07:00
|
|
|
<td>{{ trans('admin/hardware/table.location')}}</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach ($assets as $asset)
|
|
|
|
<tr>
|
|
|
|
<td><input type="checkbox" name="ids[]" value="{{ $asset->id }}" checked="checked"></td>
|
|
|
|
<td>{{ $asset->id }}</td>
|
|
|
|
<td>{{ $asset->present()->name() }}</td>
|
|
|
|
<td>
|
|
|
|
@if ($asset->location)
|
|
|
|
{{ $asset->location->name }}
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div><!-- /.box-body -->
|
|
|
|
|
|
|
|
<div class="box-footer text-right">
|
|
|
|
<a class="btn btn-link" href="{{ URL::previous() }}" method="post" enctype="multipart/form-data">{{ trans('button.cancel') }}</a>
|
2024-08-18 09:26:44 -07:00
|
|
|
<button type="submit" class="btn btn-success" id="submit-button"><x-icon type="checkmark" /> {{ trans('button.restore') }}</button>
|
2023-03-29 16:24:56 -07:00
|
|
|
</div><!-- /.box-footer -->
|
|
|
|
</div><!-- /.box -->
|
|
|
|
</form>
|
|
|
|
</div> <!-- .col-md-12-->
|
|
|
|
</div><!--.row-->
|
|
|
|
@stop
|