Files
gsf/resources/views/Admin/Pages/manage_activities/edit_main_activities.blade.php
vedant-chavan 20f55281ef save to codehub
2024-08-09 17:11:41 +05:30

242 lines
14 KiB
PHP

@extends('Admin.layouts.master')
@section('content')
@php
$currentPage = 'manage_activities';
@endphp
<!--begin::Wrapper-->
<!--<div class="app-wrapper flex-column flex-row-fluid " id="kt_app_wrapper">-->
<!--<link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.10/css/select2.min.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.10/js/select2.min.js"></script>
<style>
span.select2-selection.select2-selection--multiple.form-select.form-select-solid.select2 {
background-color: #1c1b1b;
padding: 9px;
border: 1px solid #9d9da6;
overflow-x: auto;
overflow-y: hidden;
max-width: 350px ;
}
.select2-container--bootstrap5 .select2-selection--multiple .select2-search.select2-search--inline {
max-width:350px;
}
.select2-results__options[aria-multiselectable="true"] li {
padding-left: 30px;
position: relative
}
.select2-results__options[aria-multiselectable="true"] li:before {
position: absolute;
left: 8px;
opacity: .6;
top: 6px;
font-family: "FontAwesome";
content: "\f0c8";
}
.select2-results__options[aria-multiselectable="true"] li[aria-selected="true"]:before {
</style>-->
<!--begin::Main-->
<div class="app-main flex-column flex-row-fluid" id="kt_app_main">
<!--begin::Content wrapper-->
<div class="edit-activity-page d-flex flex-column flex-column-fluid">
<div class="app-container container-xxl">
<h1 class="page-heading d-flex text-dark fw-bold fs-3 flex-column justify-content-center my-0">
Edit Activity</h1>
<div id="kt_app_content" class="app-content flex-column-fluid">
<div id="kt_app_content_container">
<!--begin::Tables Widget 13-->
<div class="card mb-5 mb-xl-8 p-5">
<form class="row" id="manage_activity_form">
@csrf
<input type="hidden" name="edit_main_activity_id" value="{{ $get_manage_activity['id'] }}">
<div class="active-edit col-md-6">
<label>Main Activity Name :</label>
<input class="w-75" type="text" name="activity_name" value="{{ $get_manage_activity['activity_name'] }}">
</div>
<div class="active-edit act_lev col-md-6">
<label>Select Teacher: </label>
<div class="select-options select-option-four">
<select class="form-select form-select-solid w-75" name="teacher_id"
data-control="select2" data-placeholder="Teacher"
data-hide-search="true">
@foreach ($teacher_datas as $teacher_data)
<option value="{{ $teacher_data['id'] }}" {{ $get_manage_activity['teacher_id'] == $teacher_data['id'] ? 'selected' : '' }} >{{ $teacher_data['teacher_title'] }}</option>
@endforeach
</select>
</div>
</div>
<div class="active-edit col-md-6">
<label>Start Date :</label>
<div class="calendar">
<input class="w-75" name="start_date" type="date" value="{{ date('Y-m-d', strtotime($get_manage_activity['start_date'])) }}">
</div>
</div>
<div class="active-edit col-md-6">
<label>End Date :</label>
<div class="calendar">
<input class="w-75" name="end_date" type="date"
value="{{ date('Y-m-d', strtotime($get_manage_activity['end_date'])) }}">
<!-- <i class="fa fa-calendar-o" aria-hidden="true"></i>-->
</div>
</div>
<div class="active-edit act_lev col-md-6">
<label>Select Faqs : </label>
<div id="edit_act_faqs" class="select-options select-option-four">
<select class="form-select form-select-solid w-75" multiple name="faq_id[]"
data-control="select2" data-placeholder="Select FAQ"
data-hide-search="true">
@foreach ($faqs_datas as $faqs_data)
<option value="{{ $faqs_data['id'] }}" {{ isset($act_faq) && in_array($faqs_data['id'], $act_faq) ? 'selected' : '' }} >{{ $faqs_data['question'] }}</option>
@endforeach
</select>
</div>
</div>
<div class="active-edit act_lev col-md-6">
<label>Activity Level : </label>
<div class="select-options select-option-four">
<select class="form-select form-select-solid w-75" name="subscription_id" data-control="select2" data-placeholder="Beginner" data-hide-search="true">
@foreach($subcriptions as $subcription)
<option value="{{$subcription['id']}}"{{ $get_manage_activity['subscription_id'] == $subcription['id'] ? 'selected' : '' }} >{{$subcription['plan_name']}}</option>
@endforeach
</select>
</div>
</div>
<div class="active-edit add-pluse-icon col-md-6">
<label>Benefits :</label>
<div class="pre-main">
<div id="edit_two_benf_group" class="form-group">
<div class=" margin-bottom next-referrals gap-2 mb-0">
@foreach($get_manage_activity['benefits_array'] as $get_manage_activities)
<input id="textinput" value="{{ $get_manage_activities }}" name="benefits[]" type="text"
placeholder="" class="form-control input-md w-75">
@endforeach
<button id="edit_two_benf">+</button>
</div>
</div>
</div>
</div>
<div class="active-edit add-pluse-icon col-md-6">
<label>Pre-requisites :</label>
<div class="pre-main">
<div id="add_two" class="form-group">
<div class=" margin-bottom next-referrals gap-2 mb-0">
@if (!is_null($get_manage_activity) && is_array($get_manage_activity['Pre_requisites_array']))
@foreach ($get_manage_activity['Pre_requisites_array'] as $get_manage_activities)
<input id="textinput" value="{{ $get_manage_activities }}" name="pre_requisites[]" type="text"
placeholder="" class="form-control input-md w-75">
@endforeach
@endif
<button id="items_two">+</button>
</div>
</div>
</div>
</div>
<div class="active-edit col-md-6">
<label>Title Line :</label>
<textarea class="w-75" name="activity_title">{{ $get_manage_activity['title'] }}</textarea>
</div>
<div class="active-edit col-md-6">
<label>Main Activity Image <span style="color:red;"></span> :</label>
<div class="image-upload w-75">
<img src="{{ asset($get_manage_activity['main_activity_banner'])}}" name="myFile">
<input type="file" name="main_activity_banner" value="{{ $get_manage_activity['main_activity_banner'] }}" class="w-100" style="">
<input type="hidden" name="db_image" value="{{ $get_manage_activity['main_activity_banner'] }}" class="" style="">
</div>
</div>
<div class="active-edit mt-5 col-md-6 m-0">
<label>Description :</label>
<div id="edit_act_desc" class="city">
<textarea id="mng-parent-cont8" name="description">{{ $get_manage_activity['description'] }}</textarea>
</div>
</div>
<div class="question-btn qbtn-m col-md-12">
<button type="submit" class="btn btn-sm fw-bold btn-primary explore" style="margin-right:93px;" id="edit_main_activity">Save
</button>
</div>
</form>
</div>
</div>
<!--end::Content container-->
</div>
</div>
</div>
</div>
<!--end::Content-->
<!--</div>-->
<!--end::Content wrapper-->
<div class="modal fade" id="description" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content description-pop">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<h2>Description</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type
and scrambled it to make a type
specimen book. It has survived not only five centuries, but also the leap into electronic
typesetting, remaining essentially unchanged. It was popularized in the 1960s with the release of
Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software
like Aldus PageMaker including versions of Lorem Ipsum.</p>
<p>ontrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of
classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin
professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words,
consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical
literature, discovered the undoubtable source.</p>
<div class="save-btn box-btn">
<button type="button" class="btn btn-primary">Save</button>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="delete_opt" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content Delete_pop">
<div class="modal-body">
<svg style="color: red;margin-bottom: 20px;" xmlns="http://www.w3.org/2000/svg" width="50"
height="50" fill="currentColor" class="bi bi-x-circle" viewBox="0 0 16 16">
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" fill="red">
</path>
<path
d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"
fill="red"></path>
</svg>
<h2>Are you sure?</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</p>
<div class="modal-footer logout_footer">
<button class="log-close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">Cancel</span>
</button>
<a href=""><button type="button" class="btn btn-primary">Delete</button></a>
</div>
</div>
</div>
</div>
</div>
<!--end::Modals-->
@endsection