@extends('themes.default1.admin.layout.admin') @section('content')

{{Lang::get('lang.templates')}} {{Lang::get('lang.create')}}

@if (count($errors) > 0)
Whoops! There were some problems with your input.

@endif @if(Session::has('success'))
{{Lang::get('message.alert')}}! {{Lang::get('message.success')}}. {{Session::get('success')}}
@endif @if(Session::has('fails'))
{{Lang::get('message.alert')}}! {{Lang::get('message.failed')}}. {{Session::get('fails')}}
@endif
{!! Datatable::table() ->addColumn('Name','Type','Action') ->setUrl('get-templates') ->setOptions([ "dom" => "Bfrtip", "buttons" => [ [ "text" => "Delete", "action" => "function ( e, dt, node, config ) { $.ajax({ url: 'templates-delete', type: 'GET', data: $('#check:checked').serialize(), beforeSend: function () { $('#gif').show(); }, success: function (data) { $('#gif').hide(); $('#response').html(data); location.reload(); } }); }" ] ], ]) ->render() !!}
@stop @section('icheck') @stop