@extends('super_admins.layouts.master') @section('title') Edit Doctor @endsection @section('css') @endsection @section('content') @if ($errors->any()) @foreach ($errors->all() as $error) {{-- {{ $error }} --}} @endforeach @endif Doctors Home Doctors Edit Doctor {{-- --}} {{-- Blogs --}} {{-- Events --}} {{-- Educations Certifications Experiences Media Podcasts Archives --}} @csrf @method('PUT') @if (isset($subscriptions)) Select Subscription : @if (count($subscriptions) > 0) Select Subscription @foreach ($subscriptions as $subscription) subscription_id == $subscription->id ? 'selected' : '' }}> {{ $subscription->name }} @endforeach @else No Subscription Exists @endif @if ($errors->has('subscription_id')) {{ $errors->first('subscription_id') }} @endif @endif @if (isset($clinics)) Select Clinic : @if (count($clinics) > 0) Select Clinic @foreach ($clinics as $clinic) clinic_id == $clinic->id ? 'selected' : '' }} value="{{ $clinic->id }}" {{ old('clinic_id') == $clinic->id ? 'selected' : '' }}> {{ $clinic->name }} @endforeach @else No Clinic Exists @endif @if ($errors->has('clinic_id')) {{ $errors->first('clinic_id') }} @endif @endif @if (isset($doctor_categories)) Select Doctor Category : @if (count($doctor_categories) > 0) Select Doctor Category @foreach ($doctor_categories as $doctor_category) {{ $doctor_category->name }} @endforeach @else No Doctor Category Exists @endif @if ($errors->has('doctor_category_ids')) {{ $errors->first('doctor_category_ids') }} @endif @endif First Name @if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif Last Name @if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif User Name @if ($errors->has('user_name')) {{ $errors->first('user_name') }} @endif Multi Language @foreach ($active_languages as $key => $language) {{ $language->name }} @endforeach @foreach ($active_languages as $key => $language) Description ({{$language->code}}) {{ $doctor->getTranslation('description', $language->code); }} @if ($errors->has('description.'.$language->code)) {{ $errors->first('description.'.$language->code) }} @endif @endforeach Choose Picture @if ($errors->has('image')) {{ $errors->first('image') }} @endif @if ($doctor->image) @else -- No Image Selected @endif Status is_active) checked @endif class="custom-control-input" id="customSwitch1" aria-describedby="IsActiveError" aria-invalid="true"> Select Doctor To Be Active Or Not {{-- @if ($errors->has('is_active')) {{ $errors->first('is_active') }} @endif --}} Featured? is_featured) checked @endif class="custom-control-input" id="customSwitch2" aria-describedby="IsFeaturedError" aria-invalid="true"> Select Doctor To Be Featured Or Not {{-- @if ($errors->has('is_featured')) {{ $errors->first('is_featured') }} @endif --}} Premium is_premium) checked @endif class="custom-control-input" id="customSwitch3" aria-describedby="IsFeaturedError" aria-invalid="true"> Select Doctor To Be Premium Or Not {{-- @if ($errors->has('is_premium')) {{ $errors->first('is_premium') }} @endif --}} Update @include('super_admins.includes.image_cropper_modal') @endsection @section('scripts') @include('super_admins.includes.image_cropper_scripts') @endsection