@extends('super_admins.layouts.master') @section('title') Edit Pricing Plan @endsection @php $currency_symbol = App\Models\GeneralSetting::where('name', 'currency_symbol')->first(); @endphp @section('css') @endsection @section('content') @if ($errors->any()) @foreach ($errors->all() as $error) {{-- {{ $error }} --}} @endforeach @endif Pricing Plan Home Pricing Plans Edit Pricing Plan @csrf @method('PUT') Select Type : type == 'doctor' ? 'selected' : '' }}>Doctor type == 'clinic' ? 'selected' : '' }}>Clinic @if ($errors->has('type')) {{ $errors->first('type') }} @endif Is Paid ? @if ($pricing_plan->is_paid == 1) is_paid == 1 ? 'selected' : '' }}>Yes @endif @if ($pricing_plan->is_paid == 0) is_paid == 0 ? 'selected' : '' }}>No @endif @if ($errors->has('is_paid')) {{ $errors->first('is_paid') }} @endif Name @if ($errors->has('name')) {{ $errors->first('name') }} @endif TagLine @if ($errors->has('tagline')) {{ $errors->first('tagline') }} @endif Color @if ($errors->has('color')) {{ $errors->first('color') }} @endif Price {{ $currency_symbol && $currency_symbol->value ? $currency_symbol->value : '' }} @if ($errors->has('price')) {{ $errors->first('price') }} @endif Description {{ $pricing_plan->description }} @if ($errors->has('description')) {{ $errors->first('description') }} @endif Choose Picture @if ($errors->has('image')) {{ $errors->first('image') }} @endif @if ($pricing_plan->image) @else -- No Image Selected @endif Status is_active) checked @endif class="custom-control-input" id="customSwitch1" aria-describedby="IsActiveError" aria-invalid="true"> Select Pricing Plan To Be Active Or Not {{-- @if ($errors->has('is_active')) {{ $errors->first('is_active') }} @endif --}} Doctor Modules Select All @foreach ($doctor_modules as $module) module_code, $pricing_plan_doctor_modules)) {{ 'checked' }} @endif name="doctor_modules[]" class="mr-2 doctor_modules" value="{{ $module->module_code }}" id="doctor_{{ $loop->index }}"> {{ $module->display_name }} @endforeach Clinic Modules Select All @foreach ($clinic_modules as $module) module_code, $pricing_plan_clinic_modules)) {{ 'checked' }} @endif name="clinic_modules[]" class="mr-2 clinic_modules" value="{{ $module->module_code }}" id="clinic_{{ $loop->index }}"> {{ $module->display_name }} @endforeach Update @include('super_admins.includes.image_cropper_modal') @endsection @section('scripts') @include('super_admins.includes.image_cropper_scripts') @endsection