@extends('layouts.admin.app') @section('title',translate('update')) @push('css_or_js') @endpush @section('content')
@csrf @php($language=\App\Models\BusinessSetting::where('key','language')->first()) @php($language = $language->value ?? null) @php($default_lang = 'en') @if($language) @php($default_lang = json_decode($language)[0]) @endif
@if ($language) @foreach(json_decode($language) as $lang) locale == $lang && $t->key=="name"){ $translate[$lang]['name'] = $t->value; } } } ?>
@endforeach @else
@endif
@endsection @push('script_2') @endpush