@extends('layouts.app')


@section('content')
<div class="page-content row">
	<div class="page-content-wrapper m-t">

		<div class="sbox">
			<div class="sbox-title">
				<h1> Website Label <small> {{ $pageNote }} </small></h1>
			</div>
			<div class="sbox-content">

	 @include('central.config.tab',array('active'=>'translation'))
 	{!! Form::open(array('url'=>'central/config/translation/', 'class'=>'form-vertical row1')) !!}
		
		<div class="col-sm-9">
		
			{{-- <a href="{{ URL::to('central/config/addtranslation')}} " onclick="CentralModal(this.href,'Add New Language');return false;" class="btn btn-success"><i class="fa fa-plus"></i> New </a>   --}}
			
			<table class="table table-striped">
				<thead>
					<tr>
						<th> Name </th>
						<th> Folder </th>
						{{-- <th> Author </th> --}}
						<th> Action </th>
					</tr>
				</thead>
				<tbody>		
			
				@foreach(SiteHelpers::langOptionEdit() as $lang)
					<tr>
						<td>  {{  $lang['name'] }}   </td>
						<td> {{  $lang['folder'] }} </td>
						{{-- <td> {{  $lang['author'] }} </td> --}}
					  	<td>
						<a href="{{ URL::to('central/config/translation?edit='.$lang['folder'])}} " class="btn btn-sm btn-primary"> Manage </a>
						
						{{-- <a href="{{ URL::to('central/config/removetranslation/'.$lang['folder'])}} " class="btn btn-sm btn-danger"> Delete </a>  --}}
					
					
					</td>
					</tr>
				@endforeach
				
				</tbody>
			</table>
		</div> 

		{!! Form::close() !!}


			</div>
		
	</div>
</div>
</div>
@endsection