2016-03-25 01:18:05 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
@section('title0')
|
|
|
|
|
2019-12-10 19:32:50 -08:00
|
|
|
@if ((Request::get('company_id')) && ($company))
|
2017-02-08 08:48:41 -08:00
|
|
|
{{ $company->name }}
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-10 19:32:50 -08:00
|
|
|
@if (Request::get('status'))
|
|
|
|
@if (Request::get('status')=='Pending')
|
2017-02-03 22:20:11 -08:00
|
|
|
{{ trans('general.pending') }}
|
2019-12-10 19:32:50 -08:00
|
|
|
@elseif (Request::get('status')=='RTD')
|
2017-02-03 22:20:11 -08:00
|
|
|
{{ trans('general.ready_to_deploy') }}
|
2019-12-10 19:32:50 -08:00
|
|
|
@elseif (Request::get('status')=='Deployed')
|
2017-10-03 12:49:53 -07:00
|
|
|
{{ trans('general.deployed') }}
|
2019-12-10 19:32:50 -08:00
|
|
|
@elseif (Request::get('status')=='Undeployable')
|
2017-02-03 22:20:11 -08:00
|
|
|
{{ trans('general.undeployable') }}
|
2019-12-10 19:32:50 -08:00
|
|
|
@elseif (Request::get('status')=='Deployable')
|
2017-02-03 22:20:11 -08:00
|
|
|
{{ trans('general.deployed') }}
|
2019-12-10 19:32:50 -08:00
|
|
|
@elseif (Request::get('status')=='Requestable')
|
2017-02-03 22:20:11 -08:00
|
|
|
{{ trans('admin/hardware/general.requestable') }}
|
2019-12-10 19:32:50 -08:00
|
|
|
@elseif (Request::get('status')=='Archived')
|
2017-02-03 22:20:11 -08:00
|
|
|
{{ trans('general.archived') }}
|
2019-12-10 19:32:50 -08:00
|
|
|
@elseif (Request::get('status')=='Deleted')
|
2017-02-03 22:20:11 -08:00
|
|
|
{{ trans('general.deleted') }}
|
|
|
|
@endif
|
2016-12-27 12:03:47 -08:00
|
|
|
@else
|
|
|
|
{{ trans('general.all') }}
|
|
|
|
@endif
|
|
|
|
{{ trans('general.assets') }}
|
2017-02-08 08:48:41 -08:00
|
|
|
|
2019-12-10 19:32:50 -08:00
|
|
|
@if (Request::has('order_number'))
|
|
|
|
: Order #{{ Request::get('order_number') }}
|
2017-02-08 08:48:41 -08:00
|
|
|
@endif
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2016-12-27 12:03:47 -08:00
|
|
|
@yield('title0') @parent
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('header_right')
|
2017-12-01 17:49:44 -08:00
|
|
|
<a href="{{ route('reports/custom') }}" style="margin-right: 5px;" class="btn btn-default">
|
2021-11-02 06:02:48 -07:00
|
|
|
{{ trans('admin/hardware/general.custom_export') }}</a>
|
2018-10-15 17:57:47 -07:00
|
|
|
@can('create', \App\Models\Asset::class)
|
2017-07-25 01:17:23 -07:00
|
|
|
<a href="{{ route('hardware.create') }}" class="btn btn-primary pull-right"></i> {{ trans('general.create') }}</a>
|
2018-10-15 17:57:47 -07:00
|
|
|
@endcan
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2016-12-27 12:03:47 -08:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-body">
|
2021-10-04 17:18:26 -07:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
2021-10-04 17:58:16 -07:00
|
|
|
|
2019-12-10 19:32:50 -08:00
|
|
|
@if (Request::get('status')!='Deleted')
|
2022-05-06 05:20:29 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@include('partials.asset-bulk-actions')
|
2021-10-04 17:58:16 -07:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
@endif
|
|
|
|
|
|
|
|
<table
|
2018-02-16 13:22:55 -08:00
|
|
|
data-advanced-search="true"
|
|
|
|
data-click-to-select="true"
|
|
|
|
data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}"
|
|
|
|
data-cookie-id-table="assetsListingTable"
|
|
|
|
data-pagination="true"
|
|
|
|
data-id-table="assetsListingTable"
|
|
|
|
data-search="true"
|
|
|
|
data-side-pagination="server"
|
|
|
|
data-show-columns="true"
|
|
|
|
data-show-export="true"
|
|
|
|
data-show-footer="true"
|
|
|
|
data-show-refresh="true"
|
|
|
|
data-sort-order="asc"
|
|
|
|
data-sort-name="name"
|
2022-06-05 21:03:56 -07:00
|
|
|
data-toolbar="#assetsBulkEditToolbar"
|
|
|
|
data-bulk-button-id="#bulkAssetEditButton"
|
|
|
|
data-bulk-form-id="#assetsBulkForm"
|
2018-02-16 13:22:55 -08:00
|
|
|
id="assetsListingTable"
|
|
|
|
class="table table-striped snipe-table"
|
|
|
|
data-url="{{ route('api.assets.index',
|
2019-12-10 19:32:50 -08:00
|
|
|
array('status' => e(Request::get('status')),
|
|
|
|
'order_number'=>e(Request::get('order_number')),
|
|
|
|
'company_id'=>e(Request::get('company_id')),
|
|
|
|
'status_id'=>e(Request::get('status_id')))) }}"
|
2018-02-16 13:22:55 -08:00
|
|
|
data-export-options='{
|
2019-12-10 19:32:50 -08:00
|
|
|
"fileName": "export{{ (Request::has('status')) ? '-'.str_slug(Request::get('status')) : '' }}-assets-{{ date('Y-m-d') }}",
|
2018-02-16 13:22:55 -08:00
|
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
|
|
}'>
|
2016-12-27 12:03:47 -08:00
|
|
|
</table>
|
2018-02-16 13:22:55 -08:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
</div><!-- /.col -->
|
|
|
|
</div><!-- /.row -->
|
2021-10-04 17:18:26 -07:00
|
|
|
|
2016-12-27 12:03:47 -08:00
|
|
|
</div><!-- ./box-body -->
|
|
|
|
</div><!-- /.box -->
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
2016-12-27 12:03:47 -08:00
|
|
|
@stop
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
@section('moar_scripts')
|
2018-02-16 13:22:55 -08:00
|
|
|
@include('partials.bootstrap-table')
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
@stop
|