44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| @extends('themes.default1.agent.layout.agent')
 | |
| 
 | |
| @extends('themes.default1.agent.layout.sidebar')    
 | |
| 
 | |
| @section('article')
 | |
| active
 | |
| @stop
 | |
| 
 | |
| @section('all-article')
 | |
| class="active"
 | |
| @stop
 | |
| 
 | |
| @section('content')
 | |
| <div class="box box-primary">
 | |
|     <div class="box-header with-border">
 | |
|         <h3 class="box-title">{{Lang::get('lang.articles')}}</h3>
 | |
|     </div>
 | |
|     <div class="box-body">
 | |
|         <!-- 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">×</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">×</button>
 | |
|             {{Session::get('fails')}}
 | |
|         </div>
 | |
|         @endif
 | |
|         {!! Datatable::table()
 | |
|         ->addColumn(Lang::get('lang.name'),
 | |
|         Lang::get('lang.create'),
 | |
|         Lang::get('lang.action'))       // these are the column headings to be shown
 | |
|         ->setUrl(route('api.article'))   // this is the route where data will be retrieved
 | |
|         ->render() !!}
 | |
|     </div>
 | |
| </div>
 | |
| @stop | 
