ALL THE DATATABLES!
This commit is contained in:
@@ -8,46 +8,53 @@ Asset Depreciations ::
|
||||
|
||||
{{-- Page content --}}
|
||||
@section('content')
|
||||
<div class="page-header">
|
||||
<h3>
|
||||
Asset Depreciations
|
||||
<div id="pad-wrapper" class="user-profile">
|
||||
<!-- header -->
|
||||
<h3 class="name">Asset Depreciations
|
||||
<div class="pull-right">
|
||||
<a href="{{ route('create/depreciations') }}" class="btn-flat success"><i class="icon-plus-sign icon-white"></i> Create New</a>
|
||||
</div>
|
||||
</h3>
|
||||
|
||||
<div class="pull-right">
|
||||
<a href="{{ route('create/depreciations') }}" class="btn-flat success"><i class="icon-plus-sign icon-white"></i> Create New</a>
|
||||
</div>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
@if ($depreciations->getTotal() > Setting::getSettings()->per_page)
|
||||
{{ $depreciations->links() }}
|
||||
@endif
|
||||
<div class="row-fluid profile">
|
||||
<!-- bio, new note & orders column -->
|
||||
<div class="span9 bio">
|
||||
<div class="profile-box">
|
||||
<br>
|
||||
<!-- checked out assets table -->
|
||||
|
||||
<div class="row-fluid table">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="span6">@lang('admin/depreciations/table.title')</th>
|
||||
<th class="span2"><span class="line"></span>@lang('admin/depreciations/table.term')</th>
|
||||
<th class="span2"><span class="line"></span>@lang('table.actions')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($depreciations as $depreciation)
|
||||
<tr>
|
||||
<td>{{ $depreciation->name }}</td>
|
||||
<td>{{ $depreciation->months }} @lang('admin/depreciations/table.months') </td>
|
||||
<td>
|
||||
<a href="{{ route('update/depreciations', $depreciation->id) }}" class="btn-flat white">@lang('button.edit')</a>
|
||||
<a class="btn-flat danger delete-asset" data-toggle="modal" href="{{ route('delete/depreciations', $depreciation->id) }}" data-content="Are you sure you wish to delete the {{ $depreciation->name }} depreciation class?" data-title="Delete {{ $depreciation->name }}?" onClick="return false;">@lang('button.delete')</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<table id="example">
|
||||
<thead>
|
||||
<tr role="row">
|
||||
<th class="span4">@lang('admin/depreciations/table.title')</th>
|
||||
<th class="span2">@lang('admin/depreciations/table.term')</th>
|
||||
<th class="span3">@lang('table.actions')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($depreciations as $depreciation)
|
||||
<tr>
|
||||
<td>{{ $depreciation->name }}</td>
|
||||
<td>{{ $depreciation->months }} @lang('admin/depreciations/table.months') </td>
|
||||
<td>
|
||||
<a href="{{ route('update/depreciations', $depreciation->id) }}" class="btn-flat white">@lang('button.edit')</a>
|
||||
<a class="btn-flat danger delete-asset" data-toggle="modal" href="{{ route('delete/depreciations', $depreciation->id) }}" data-content="Are you sure you wish to delete the {{ $depreciation->name }} depreciation class?" data-title="Delete {{ $depreciation->name }}?" onClick="return false;">@lang('button.delete')</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if ($depreciations->getTotal() > Setting::getSettings()->per_page)
|
||||
{{ $depreciations->links() }}
|
||||
@endif
|
||||
|
||||
@stop
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- side address column -->
|
||||
<div class="span3 address pull-right">
|
||||
<br /><br />
|
||||
<h6>About Asset Depreciations</h6>
|
||||
<p>You can set up asset depreciations to depreciate assets based on straight-line depreciation. </p>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
@@ -18,19 +18,16 @@ Group Management ::
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
@if (count($groups) > Setting::getSettings()->per_page)
|
||||
{{ $groups->links() }}
|
||||
@endif
|
||||
|
||||
<div class="row-fluid table">
|
||||
<table class="table table-hover">
|
||||
<table id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<tr role="row">
|
||||
<th class="span1">@lang('admin/groups/table.id')</th>
|
||||
<th class="span6"><span class="line"></span>@lang('admin/groups/table.name')</th>
|
||||
<th class="span2"><span class="line"></span>@lang('admin/groups/table.users')</th>
|
||||
<th class="span2"><span class="line"></span>@lang('admin/groups/table.created_at')</th>
|
||||
<th class="span2"><span class="line"></span>@lang('table.actions')</th>
|
||||
<th class="span6">@lang('admin/groups/table.name')</th>
|
||||
<th class="span2">@lang('admin/groups/table.users')</th>
|
||||
<th class="span2">@lang('admin/groups/table.created_at')</th>
|
||||
<th class="span2">@lang('table.actions')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -56,8 +53,5 @@ Group Management ::
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@if (count($groups) > Setting::getSettings()->per_page)
|
||||
{{ $groups->links() }}
|
||||
@endif
|
||||
|
||||
@stop
|
||||
|
||||
@@ -18,20 +18,16 @@ Locations ::
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
@if ($locations->getTotal() > 10)
|
||||
{{ $locations->links() }}
|
||||
@endif
|
||||
|
||||
<div class="row-fluid table">
|
||||
<table class="table table-hover">
|
||||
<table id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<tr role="row">
|
||||
<th class="span4">@lang('admin/locations/table.name')</th>
|
||||
<th class="span2"><span class="line"></span>Address</th>
|
||||
<th class="span2"><span class="line"></span>@lang('admin/locations/table.city'),
|
||||
<th class="span2">Address</th>
|
||||
<th class="span2">@lang('admin/locations/table.city'),
|
||||
@lang('admin/locations/table.state')
|
||||
@lang('admin/locations/table.country')</th>
|
||||
<th class="span2"><span class="line"></span>@lang('table.actions')</th>
|
||||
<th class="span2">@lang('table.actions')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -50,8 +46,5 @@ Locations ::
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@if ($locations->getTotal() > 10)
|
||||
{{ $locations->links() }}
|
||||
@endif
|
||||
|
||||
@stop
|
||||
|
||||
@@ -18,16 +18,13 @@ Asset Manufacturers ::
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
@if ($manufacturers->getTotal() > Setting::getSettings()->per_page)
|
||||
{{ $manufacturers->links() }}
|
||||
@endif
|
||||
|
||||
<div class="row-fluid table">
|
||||
<table class="table table-hover">
|
||||
<table id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<tr role="row">
|
||||
<th class="span10">@lang('admin/manufacturers/table.title')</th>
|
||||
<th class="span2"><span class="line"></span>@lang('table.actions')</th>
|
||||
<th class="span2">@lang('table.actions')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -44,8 +41,4 @@ Asset Manufacturers ::
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@if ($manufacturers->getTotal() > Setting::getSettings()->per_page)
|
||||
{{ $manufacturers->links() }}
|
||||
@endif
|
||||
|
||||
@stop
|
||||
|
||||
@@ -17,14 +17,10 @@ Asset Models ::
|
||||
</div>
|
||||
</h3>
|
||||
</div>
|
||||
@if ($models->getTotal() > Setting::getSettings()->per_page)
|
||||
{{ $models->links() }}
|
||||
@endif
|
||||
|
||||
<div class="row-fluid table">
|
||||
<table class="table table-hover">
|
||||
<table id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<tr role="row">
|
||||
<th class="span3">@lang('admin/models/table.title')</th>
|
||||
<th class="span3"><span class="line"></span>@lang('admin/models/table.modelnumber')</th>
|
||||
<th class="span1"><span class="line"></span>@lang('admin/models/table.numassets')</th>
|
||||
@@ -49,9 +45,4 @@ Asset Models ::
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
@if ($models->getTotal() > Setting::getSettings()->per_page)
|
||||
{{ $models->links() }}
|
||||
@endif
|
||||
|
||||
@stop
|
||||
|
||||
@@ -24,9 +24,9 @@ Status Labels
|
||||
<br>
|
||||
<!-- checked out assets table -->
|
||||
|
||||
<table class="table table-hover">
|
||||
<table id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<tr role="row">
|
||||
<th class="span4">@lang('admin/statuslabels/table.name')</th>
|
||||
<th class="span2"><span class="line"></span>@lang('table.actions')</th>
|
||||
</tr>
|
||||
|
||||
@@ -22,21 +22,21 @@ User Management ::
|
||||
<a class="btn-flat white" href="{{ URL::to('admin/users?onlyTrashed=true') }}">Include Only Deleted Users</a>
|
||||
<br><br>
|
||||
|
||||
@if ($users->getTotal() > Setting::getSettings()->per_page)
|
||||
@if ($users->getTotal() > 10)
|
||||
{{ $users->links() }}
|
||||
@endif
|
||||
|
||||
@if ($users->getTotal() > 0)
|
||||
<div class="row-fluid table users-list">
|
||||
<table class="table table-hover">
|
||||
<table id="example">
|
||||
<thead>
|
||||
<tr>
|
||||
<tr role="row">
|
||||
<th class="span3">@lang('admin/users/table.name')</th>
|
||||
<th class="span2"><span class="line"></span>@lang('admin/users/table.email')</th>
|
||||
<th class="span1"><span class="line"></span>@lang('admin/users/table.checkedout')</th>
|
||||
<th class="span1"><span class="line"></span>@lang('admin/users/table.activated')</th>
|
||||
<th class="span2"><span class="line"></span>@lang('admin/users/table.last_login')</th>
|
||||
<th class="span1"><span class="line"></span>@lang('admin/users/table.created_at')</th>
|
||||
<th class="span2">@lang('admin/users/table.email')</th>
|
||||
<th class="span1">@lang('admin/users/table.checkedout')</th>
|
||||
<th class="span1">@lang('admin/users/table.activated')</th>
|
||||
<th class="span2">@lang('admin/users/table.last_login')</th>
|
||||
<th class="span1">@lang('admin/users/table.created_at')</th>
|
||||
<th class="span2">@lang('table.actions')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -47,7 +47,7 @@ User Management ::
|
||||
<td>
|
||||
<img src="{{ $user->gravatar() }}" class="img-circle avatar hidden-phone" style="max-width: 45px;" />
|
||||
<a href="{{ route('view/user', $user->id) }}" class="name">{{ $user->fullName() }}</a>
|
||||
<span class="subtext">{{ $user->jobtitle }}</span>
|
||||
|
||||
</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
<td>
|
||||
@@ -71,7 +71,8 @@ User Management ::
|
||||
@else
|
||||
<a href="{{ route('update/user', $user->id) }}" class="btn-flat white"><i class="icon-pencil"></i> @lang('button.edit')</a>
|
||||
@if (Sentry::getId() !== $user->id)
|
||||
<a href="{{ route('delete/user', $user->id) }}" class="btn-flat danger"><i class="icon-remove icon-white"></i> @lang('button.delete')</a>
|
||||
<a class="btn-flat danger delete-asset" data-toggle="modal" href="{{ route('delete/user', $user->id) }}" data-content="Are you sure you wish to delete the user {{ $user->fullName() }}?" data-title="Delete {{ $user->first_name }}?" onClick="return false;"><i class="icon-remove icon-white"></i> @lang('button.delete')</a>
|
||||
|
||||
@else
|
||||
<span class="btn-flat danger disabled"><i class="icon-remove icon-white"></i> @lang('button.delete')</span>
|
||||
@endif
|
||||
@@ -93,7 +94,7 @@ User Management ::
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($users->getTotal() > Setting::getSettings()->per_page)
|
||||
@if ($users->getTotal() > 10)
|
||||
{{ $users->links() }}
|
||||
@endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user