You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/views/admin/langs/translateIndex.blade.php

42 lines
1.8 KiB
PHTML

@extends('admin.adminlayout')
@section('page_title')
{{__("Languages translate")}}
-
@endsection
@section('content')
<div class="container">
@include('starter-kit::component.err')
<div class="text-center pt-3">
<div class="row">
@foreach($langs as $lang)
<div class="col-md-4">
<div class="lang-item">
<h5>
{{$lang->name}}
</h5>
<a href="{{route('admin.lang.download',$lang->tag)}}" class="btn btn-outline-dark w-100 mb-3 btn-sm">
<i class="ri-download-2-line"></i>
{{__("Download json file")}}
</a>
<form action="{{route('admin.lang.upload',$lang->tag)}}" method="post" enctype="multipart/form-data">
@csrf
<input type="file" name="json" id="file" class="form-control">
<button class="btn btn-outline-primary btn-sm w-100 mt-2">
<i class="ri-upload-2-line"></i>
{{__("Upload file")}}
</button>
</form>
<a href="{{route('admin.lang.ai',$lang->tag)}}" class="btn btn-outline-success w-100 mt-3 btn-sm">
<i class="ri-ai-generate"></i>
{{__("Translate with AI")}}
</a>
</div>
</div>
@endforeach
</div>
</div>
</div>
@endsection