@extends('admin.layouts.master') @section('content')

{{ trans('app.languages') }}

@can('create', \App\Models\Language::class) {{ trans('app.add_language') }} @endcan
@can('massDelete', \App\Models\Language::class) @endcan @foreach ($languages as $language) @can('massDelete', \App\Models\Language::class) @endcan @endforeach
{{ trans('app.language') }} {{ trans('app.code') }} {{ trans('app.php_locale_code') }}  
{{ $language->code }} {{ $language->language }} @if ($language->rtl) {{ trans('app.rtl') }} @endif @if ($language->active) {{ trans('app.active') }} @endif {!! $language->code !!} {!! $language->php_locale_code !!} @can('update', $language)   @endcan @can('delete', $language) @if (in_array($language->id, config('system.freeze.languages'))) @else {!! Form::open(['route' => ['admin.setting.language.trash', $language], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endif @endcan

@can('massDelete', \App\Models\Language::class) {!! Form::open(['route' => ['admin.setting.language.emptyTrash'], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm btn btn-default btn-flat ajax-silent', 'title' => trans('help.empty_trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'right']) !!} {!! Form::close() !!} @else @endcan {{ trans('app.trash') }}

@foreach ($trashes as $trash) @endforeach
{{ trans('app.language') }} {{ trans('app.code') }} {{ trans('app.deleted_at') }} {{ trans('app.option') }}
{{ $trash->code }} {{ $trash->language }} @if ($trash->rtl) {{ trans('app.rtl') }} @endif {!! $trash->code !!} {{ $trash->deleted_at->diffForHumans() }} @can('delete', $trash)   {!! Form::open(['route' => ['admin.setting.language.destroy', $trash], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.delete_permanently'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection