@extends('layouts.admin.app') @section('title',translate('messages.Update category')) @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]) @foreach(json_decode($language) as $lang) locale == $lang && $t->key=="name"){ $translate[$lang]['name'] = $t->value; } } } ?>
@endforeach @else
@endif @if ($category->position != 1)
* ( {{translate('messages.ratio')}} 1:1)
@endif
@endsection @push('script_2') @endpush