Server IP : 66.29.132.124 / Your IP : 18.224.32.243 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/modules/Language/Views/translations/ |
Upload File : |
@extends('admin.layouts.app') @section('content') <div class="container"> <div class="d-flex justify-content-between mb20"> <h1 class="title-bar">{{__("Translate Manager for: :name",['name'=>$lang->name])}}</h1> </div> @include('admin.message') <div class="row"> <div class="col-md-12"> <div class="filter-div d-flex justify-content-between"> <div class="col-left"> <form method="get" action="" class="filter-form filter-form-left d-flex justify-content-start flex-column flex-sm-row"> <select name="type" class="form-control"> <option value="">{{__("All text")}}</option> <option @if(Request()->type == 'not_translated') selected @endif value="not_translated">{{__("Not translated")}}</option> <option @if(Request()->type == 'translated') selected @endif value="translated">{{__("Translated")}}</option> </select> <select name="search_by" class="form-control"> <option value="">{{__("Search By")}}</option> <option @if(Request()->search_by == 'original_text') selected @endif value="original_text">{{__("Original Text")}}</option> <option @if(Request()->search_by == 'translated_text') selected @endif value="translated_text">{{__("Translated Text")}}</option> </select> <input type="text" name="s" value="{{ Request()->s }}" placeholder="{{__('Search by key ...')}}" class="form-control"> <button class="btn-info btn btn-icon" type="submit">{{__('Filter')}}</button> </form> </div> <div class="col-left"> <p><i>{{__('Found :total texts',['total'=>$origins->total()])}}</i></p> </div> </div> <div class="panel"> <div class="panel-title">{{__("Translate")}}</div> <div class="panel-body"> <form action="{{route('language.admin.translations.store',['id'=>$lang->id])}}" method="post"> @csrf <table class="table table-hover"> <thead> <tr> <th width="50px"></th> <th width="50%">{{__("Origin")}}</th> <th>{{__("Translated")}}</th> </tr> </thead> <tbody> @foreach($origins as $k=>$item) <tr> <td>{{$origins->firstItem() + $k}}</td> <td> {{$item->string}} </td> <td> <textarea name="translate[{{$item->id}}]" class="form-control">{{$item->translate}}</textarea> </td> </tr> @endforeach </tbody> </table> <div class="text-center"> <button class="btn btn-primary"><i class="fa fa-save"></i> {{__('Save changes')}}</button> </div> </form> </div> </div> <div class="d-flex justify-content-end">{{$origins->links()}}</div> </div> </div> </div> @endsection