Files
faveo/resources/views/themes/default1/admin/helpdesk/language/index.blade.php
2016-01-04 18:05:45 +05:30

61 lines
2.0 KiB
PHP

@extends('themes.default1.admin.layout.admin')
@section('Settings')
class="active"
@stop
@section('settings-bar')
active
@stop
@section('languages')
class="active"
@stop
@section('HeadInclude')
@stop
<!-- header -->
@section('PageHeader')
@stop
<!-- /header -->
<!-- breadcrumbs -->
@section('breadcrumbs')
<ol class="breadcrumb">
</ol>
@stop
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{{ Lang::get('lang.language') }}</h2><a href="{{route('add-language')}}" class="btn btn-primary pull-right"><i class="fa fa-plus"></i> {{Lang::get('lang.add')}}</a>
<a href="{{route('download')}}" title="click here to download template file" class="btn btn-primary pull-right"><i class="fa fa-download"></i> {{Lang::get('lang.download')}}</a>
</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">&times;</button>
{{Session::get('success')}} <a href="{{url(Session::get('link'))}}"> Enable it</a>
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
{!! Datatable::table()
->addColumn(Lang::get('lang.language'),Lang::get('lang.iso-code'),Lang::get('lang.status'),Lang::get('lang.Action')) // these are the column headings to be shown
->setUrl(route('getAllLanguages')) // this is the route where data will be retrieved
->render() !!}
</div>
</div>
@stop