@include('admin.components.form.input-file',[
'label' => __("Image"),
'name' => "image",
'class' => "file-holder",
'old_files_path' => files_asset_path("site-section"),
'old_files' => $data->value->image ?? "",
])
@foreach ($languages as $item)
@php
$lang_code = $item->code;
@endphp
@include('admin.components.form.input',[
'label' => __("Title")."*",
'name' => $item->code . "_title",
'value' => old($item->code . "_title",$data->value->language->$lang_code->title ?? "")
])
@include('admin.components.form.input',[
'label' => __("Description")."*",
'name' => $item->code . "_description",
'value' => old($item->code . "_description",$data->value->language->$lang_code->description ?? "")
])
@endforeach
@include('admin.components.form.input',[
'label' =>__("Phone")."*",
'name' => "phone",
'value' => old("phone",$data->value->phone ?? "")
])
@include('admin.components.form.input',[
'label' => __("Address")."*",
'name' => "address",
'value' => old("address",$data->value->address ?? "")
])
@include('admin.components.form.input',[
'label' => __("Email")."*",
'name' => "email",
'value' => old("email",$data->value->email ?? "")
])
@include('admin.components.button.form-btn',[
'class' => "w-100 btn-loading",
'text' => __("Submit"),
'permission' => "admin.setup.sections.section.update"
])