@extends('admin.layouts.app') @push('libraries_top') @endpush @php $values = !empty($setting) ? $setting->value : null; if (!empty($values)) { $values = json_decode($values, true); } $featuredInstructors = collect(); $topMentors = collect(); if (!empty($values) and !empty($values['featured_instructors_ids']) and is_array($values['featured_instructors_ids'])) { $featuredInstructors = \App\User::query()->whereIn('id', $values['featured_instructors_ids'])->get(); } if (!empty($values) and !empty($values['top_mentors_ids']) and is_array($values['top_mentors_ids'])) { $topMentors = \App\User::query()->whereIn('id', $values['top_mentors_ids'])->get(); } @endphp @section('content') {{ trans('update.settings') }} {{trans('admin/main.dashboard')}} {{ trans('update.settings') }} {{ csrf_field() }} {{ trans('update.featured_instructors') }} {{trans('update.specific_instructors')}} @foreach($featuredInstructors as $instructor) {{ $instructor->full_name }} @endforeach {{trans('update.top_mentors')}} @foreach($topMentors as $topMentor) {{ $topMentor->full_name }} @endforeach {{ trans('public.images') }} @foreach([1,2,3,4] as $step) {{ trans('update.images_for_step_n',['step' => $step]) }} @foreach(['main_image', 'overlay_image'] as $type) @php $key = "{$type}_step_{$step}"; @endphp {{ trans("update.{$type}") }} @endforeach @endforeach {{ trans('admin/main.submit') }} @endsection @push('scripts_bottom') @endpush