Files
faveo/resources/views/themes/default1/agent/kb/pages/index.blade.php
2021-01-28 18:07:18 +05:30

77 lines
1.8 KiB
PHP

@extends('themes.default1.agent.layout.agent')
@extends('themes.default1.agent.layout.sidebar')
@section('Tools')
class="nav-link active"
@stop
@section('tool')
class="active"
@stop
@section('kb')
class="nav-link active"
@stop
@section('all-pages')
class="nav-link active"
@stop
@section('pages')
class="nav-link active"
@stop
@section('page-menu-open')
class="nav nav-treeview menu-open"
@stop
@section('page-menu-parent')
class="nav-item menu-open"
@stop
@section('PageHeader')
<h1>{{Lang::get('lang.pages')}}</h1>
@stop
@section('content')
<!-- check whether success or not -->
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success')}}
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>{!! lang::get('lang.alert') !!}!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">{{Lang::get('lang.pages')}}</h3>
</div>
<div class="card-body">
<div class="row">
<div class="col-sm-12">
{!! Datatable::table()
->addColumn(Lang::get('lang.name'),
Lang::get('lang.created'),
Lang::get('lang.action')) // these are the column headings to be shown
->setUrl(route('api.page')) // this is the route where data will be retrieved
->render() !!}
</div>
</div>
</div>
</div>
@stop