2018-07-28 03:45:33 -07:00
|
|
|
@extends('layouts/default')
|
2023-03-29 09:33:15 -07:00
|
|
|
@php
|
|
|
|
!empty($user) ? $full_name = $user->present()->full_name : $full_name = '';
|
|
|
|
@endphp
|
2018-07-28 03:45:33 -07:00
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2023-03-29 09:33:15 -07:00
|
|
|
{{ trans('general.accept_assets', array('name' => $full_name)) }}
|
2018-07-28 03:45:33 -07:00
|
|
|
@parent
|
|
|
|
@stop
|
|
|
|
|
|
|
|
{{-- Account page content --}}
|
|
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="box box-default">
|
|
|
|
|
|
|
|
<div class="box-body">
|
|
|
|
<!-- checked out Accessories table -->
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table
|
|
|
|
data-cookie-id-table="pendingAcceptances"
|
|
|
|
data-pagination="true"
|
|
|
|
data-id-table="pendingAcceptances"
|
|
|
|
data-search="true"
|
|
|
|
data-side-pagination="client"
|
|
|
|
data-show-columns="true"
|
|
|
|
data-show-export="true"
|
|
|
|
data-show-refresh="true"
|
|
|
|
data-sort-order="asc"
|
|
|
|
id="pendingAcceptances"
|
|
|
|
class="table table-striped snipe-table"
|
|
|
|
data-export-options='{
|
|
|
|
"fileName": "my-pending-acceptances-{{ date('Y-m-d') }}",
|
|
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
|
|
}'>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-11-02 02:13:22 -07:00
|
|
|
<th>{{ trans('general.name')}}</th>
|
2021-11-02 04:03:41 -07:00
|
|
|
<th>{{ trans('table.actions')}}</th>
|
2018-07-28 03:45:33 -07:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach ($acceptances as $acceptance)
|
|
|
|
<tr>
|
2020-09-08 18:29:02 -07:00
|
|
|
<td>{{ ($acceptance->checkoutable) ? $acceptance->checkoutable->present()->name : '' }}</td>
|
2021-11-02 02:40:41 -07:00
|
|
|
<td><a href="{{ route('account.accept.item', $acceptance) }}" class="btn btn-default btn-sm">{{ trans('general.accept_decline') }}</a></td>
|
2018-07-28 03:45:33 -07:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div> <!-- .box-body-->
|
|
|
|
</div><!--.box.box-default-->
|
|
|
|
</div> <!-- .col-md-12-->
|
|
|
|
</div> <!-- .row-->
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('moar_scripts')
|
|
|
|
@include ('partials.bootstrap-table')
|
|
|
|
@stop
|