ctrlpanel/themes/default/views/admin/nodes/index.blade.php

101 lines
3.2 KiB
PHP
Raw Normal View History

2021-12-13 07:42:53 +00:00
<!--
THIS FILE IS DEPRECATED
-->
2021-06-05 09:26:32 +00:00
@extends('layouts.main')
@section('content')
<!-- CONTENT HEADER -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
2021-12-21 14:48:40 +00:00
<h1>{{__('Nodes')}}</h1>
2021-06-05 09:26:32 +00:00
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
2021-12-21 14:48:40 +00:00
<li class="breadcrumb-item"><a href="{{route('home')}}">{{__('Dashboard')}}</a></li>
2021-06-05 09:26:32 +00:00
<li class="breadcrumb-item"><a class="text-muted"
2021-12-21 14:48:40 +00:00
href="{{route('admin.nodes.index')}}">{{__('Nodes')}}</a></li>
2021-06-05 09:26:32 +00:00
</ol>
</div>
</div>
</div>
</section>
<!-- END CONTENT HEADER -->
<!-- MAIN CONTENT -->
<section class="content">
<div class="container-fluid">
<div class="card">
<div class="card-header">
<div class="d-flex justify-content-between">
2021-12-21 14:48:40 +00:00
<h5 class="card-title"><i class="fas fa-sitemap mr-2"></i>{{__('Nodes')}}</h5>
2021-06-05 09:26:32 +00:00
<a href="{{route('admin.nodes.sync')}}" class="btn btn-sm btn-info"><i
2021-12-21 14:48:40 +00:00
class="fas fa-sync mr-1"></i>{{__('Sync')}}</a>
2021-06-05 09:26:32 +00:00
</div>
</div>
<div class="card-body table-responsive">
<table id="datatable" class="table table-striped">
<thead>
<tr>
2021-12-21 14:48:40 +00:00
<th>{{__('Active')}}</th>
<th>{{__('ID')}}</th>
<th>{{__('Location')}}</th>
<th>{{__('Name')}}</th>
<th>{{__('Description')}}</th>
<th>{{__('Created at')}}</th>
2021-06-05 09:26:32 +00:00
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<!-- END CUSTOM CONTENT -->
</section>
<!-- END CONTENT -->
<script>
function submitResult() {
2021-12-21 14:48:40 +00:00
return confirm({{__("Are you sure you wish to delete?")}}) !== false;
2021-06-05 09:26:32 +00:00
}
document.addEventListener("DOMContentLoaded", function () {
$('#datatable').DataTable({
2021-12-13 21:39:40 +00:00
language: {
2022-08-17 08:33:44 +00:00
url: '//cdn.datatables.net/plug-ins/1.11.3/i18n/{{config("SETTINGS::LOCALE:DATATABLES")}}.json'
2021-12-13 21:39:40 +00:00
},
2021-06-05 09:26:32 +00:00
processing: true,
serverSide: true,
stateSave: true,
ajax: "{{route('admin.nodes.datatable')}}",
order: [[ 1, "desc" ]],
columns: [
{data: 'actions', name : 'disabled'},
{data: 'id'},
{data: 'location' , name : 'location.name'},
{data: 'name' , name : 'nodes.name'},
{data: 'description'},
{data: 'created_at'},
]
});
});
</script>
@endsection