[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.blade.php
@extends('layouts.admin') @section('page-title') {{ __('Manage Languages') }} @endsection @section('links') @if (\Auth::guard('client')->check()) <li class="breadcrumb-item"><a href="{{ route('client.home') }}">{{ __('Home') }}</a></li> @else <li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Home') }}</a></li> @endif <li class="breadcrumb-item"> {{ __('Manage Languages') }}</li> @endsection @section('action-button') {{-- @if ($currantLang != (env('DEFAULT_LANG') ?? 'en')) <div class="col-auto"> <a href="#" class="btn btn-sm btn-danger bs-pass-para" data-toggle="tooltip" title="{{__('Delete This Language')}}" data-confirm="{{__('Are You Sure?')}}" data-text="{{__('This action can not be undone. Do you want to continue?')}}" data-confirm-yes="delete-form-{{$currantLang}}"><i class="ti ti-trash text-white"></i> </a> {!! Form::open(['method' => 'DELETE', 'route' => ['lang.destroy', $currantLang],'id'=>'delete-form-'.$currantLang]) !!} {!! Form::close() !!} </div> @endif <div class="col-auto mx-1"> <a href="#" class="btn btn-sm btn-primary" data-ajax-popup="true" data-size="md" data-title="{{ __('Create Language') }}" data-toggle="tooltip" title="{{__('Create Language')}}" data-url="{{route('create_lang_workspace')}}"> <i class="ti ti-plus"></i> </a> </div> --}} <div class="row float-end"> @if ($currantLang != (env('DEFAULT_LANG') ?? 'en')) <div class="col-auto py-1 form-check form-switch custom-switch-v1"> <input type="hidden" name="disable_lang" value="off"> <input type="checkbox" class="form-check-input input-primary" name="disable_lang" data-bs-placement="top" title="{{ __('Enable/Disable') }}" id="disable_lang" data-bs-toggle="tooltip" {{ !in_array($currantLang, $disabledLang) ? 'checked' : '' }}> <label class="form-check-label" for="disable_lang"></label> </div> <div class="col-auto"> <a href="#" class="btn btn-sm btn-danger bs-pass-para" data-toggle="tooltip" title="{{ __('Delete This Language') }}" data-confirm="{{ __('Are You Sure?') }}" data-text="{{ __('This action can not be undone. Do you want to continue?') }}" data-confirm-yes="delete-form-{{ $currantLang }}"><i class="ti ti-trash text-white"></i> </a> {!! Form::open([ 'method' => 'DELETE', 'route' => ['lang.destroy', $currantLang], 'id' => 'delete-form-' . $currantLang, ]) !!} {!! Form::close() !!} </div> @endif {{-- <div class="col-auto mx-1"> <a href="#" class="btn btn-sm btn-primary" data-ajax-popup="true" data-size="md" data-title="{{ __('Create Language') }}" data-toggle="tooltip" title="{{ __('Create Language') }}" data-url="{{ route('create_lang_workspace') }}"> <i class="ti ti-plus"></i> </a> </div> --}} </div> @endsection @section('content') <div class="row"> <div class="col-lg-2"> <div class="card"> <div class="list-group list-group-flush" id="v-pills-tab" role="tablist" aria-orientation="vertical"> @foreach ($workspace->languages() as $lang) <a href="{{ route('lang_workspace', $lang) }}" class="list-group-item list-group-item-action border-0 @if ($currantLang == $lang) active @endif"> {{-- <i class="d-lg-none d-block mr-1"></i> --}} {{ ucfirst(\App\Models\Utility::getlang_fullname($lang)) }} <div class="float-end"><i class="ti ti-chevron-right"></i></div> </a> @endforeach </div> </div> </div> <div class="col-lg-10"> <div class="p-3 card"> <ul class="nav nav-pills nav-fill" id="pills-tab" role="tablist"> <li class="nav-item" role="presentation"> <button class="nav-link active" id="pills-user-tab-1" data-bs-toggle="pill" data-bs-target="#labels" type="button">{{ __('Labels') }}</button> </li> <li class="nav-item" role="presentation"> <button class="nav-link" id="pills-user-tab-2" data-bs-toggle="pill" data-bs-target="#messages" type="button">{{ __('Messages') }}</button> </li> </ul> </div> <div class="card"> <div class="card-body p-3"> {{-- <ul class="nav nav-tabs bordar_styless my-4"> <li> <a data-toggle="tab" href="#labels" class="active">{{ __('Labels') }}</a> </li> <li class="annual-billing"> <a data-toggle="tab" href="#messages" class="">{{ __('Messages') }} </a> </li> </ul> --}} <form method="post" action="{{ route('store_lang_data_workspace', $currantLang) }}"> @csrf <div class="tab-content"> <div class="tab-pane active" id="labels"> <div class="row"> @foreach ($arrLabel as $label => $value) <div class="col-lg-6"> <div class="form-group mb-3"> <label class="form-label text-dark">{{ $label }}</label> <input type="text" class="form-control" name="label[{{ $label }}]" value="{{ $value }}"> </div> </div> @endforeach </div> </div> <div class="tab-pane" id="messages"> @foreach ($arrMessage as $fileName => $fileValue) <div class="row"> <div class="col-lg-12"> <h6>{{ ucfirst($fileName) }}</h6> </div> @foreach ($fileValue as $label => $value) @if (is_array($value)) @foreach ($value as $label2 => $value2) @if (is_array($value2)) @foreach ($value2 as $label3 => $value3) @if (is_array($value3)) @foreach ($value3 as $label4 => $value4) @if (is_array($value4)) @foreach ($value4 as $label5 => $value5) <div class="col-lg-6"> <div class="form-group mb-3"> <label class="form-label text-dark">{{ $fileName }}.{{ $label }}.{{ $label2 }}.{{ $label3 }}.{{ $label4 }}.{{ $label5 }}</label> <input type="text" class="form-control" name="message[{{ $fileName }}][{{ $label }}][{{ $label2 }}][{{ $label3 }}][{{ $label4 }}][{{ $label5 }}]" value="{{ $value5 }}"> </div> </div> @endforeach @else <div class="col-lg-6"> <div class="form-group mb-3"> <label class="form-label text-dark">{{ $fileName }}.{{ $label }}.{{ $label2 }}.{{ $label3 }}.{{ $label4 }}</label> <input type="text" class="form-control" name="message[{{ $fileName }}][{{ $label }}][{{ $label2 }}][{{ $label3 }}][{{ $label4 }}]" value="{{ $value4 }}"> </div> </div> @endif @endforeach @else <div class="col-lg-6"> <div class="form-group mb-3"> <label class="form-label text-dark">{{ $fileName }}.{{ $label }}.{{ $label2 }}.{{ $label3 }}</label> <input type="text" class="form-control" name="message[{{ $fileName }}][{{ $label }}][{{ $label2 }}][{{ $label3 }}]" value="{{ $value3 }}"> </div> </div> @endif @endforeach @else <div class="col-lg-6"> <div class="form-group mb-3"> <label class="form-label text-dark">{{ $fileName }}.{{ $label }}.{{ $label2 }}</label> <input type="text" class="form-control" name="message[{{ $fileName }}][{{ $label }}][{{ $label2 }}]" value="{{ $value2 }}"> </div> </div> @endif @endforeach @else <div class="col-lg-6"> <div class="form-group mb-3"> <label class="form-label text-dark">{{ $fileName }}.{{ $label }}</label> <input type="text" class="form-control" name="message[{{ $fileName }}][{{ $label }}]" value="{{ $value }}"> </div> </div> @endif @endforeach </div> @endforeach </div> </div> <div class="text-end"> <input type="submit" value="{{ __('Save Changes') }}" class="btn btn-primary"> </div> </form> </div> </div> </div> </div> @endsection @push('scripts') <script> $(document).on('change', '#disable_lang', function() { var val = $(this).prop("checked"); if (val == true) { var langMode = 'on'; } else { var langMode = 'off'; } $.ajax({ type: 'POST', url: "{{ route('disablelanguage') }}", datType: 'json', data: { "_token": "{{ csrf_token() }}", "mode": langMode, "lang": "{{ $currantLang }}" }, success: function(data) { show_toastr('Success', data.message, 'success') } }); }); </script> @endpush
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.8 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002