profile.blade.php 100 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294
  1. @extends('application.layouts.master')
  2. @section('content')
  3. <!-- Hero Start -->
  4. <section class="bg-half-170 d-table w-100 it-home mt-5" style="background-color: #efefef; height: 100vh;">
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-md-12 mt-4 mb-3">
  8. <div class="card border-0" style="border-radius:0px !important;">
  9. <div class="container-fluid">
  10. <div class="row">
  11. <div class="col-md-12">
  12. <div class="row align-items-center">
  13. <div class="card rounded border-0 mb-4" style="background-color:white; padding:0px;">
  14. <div class="row">
  15. <div class="col-md-12">
  16. <div class="text-end" style="margin:1.4rem !important;">
  17. <button type="button" class="btn btn2 btn-proposal-open">Add New Proposal</button>
  18. </div>
  19. <!-- Proposal Tab -->
  20. <div class="col-md-12 mb-4">
  21. <div id="demo15" class="proposal_info" style="width: 96%; margin-left: 21px; display:none;">
  22. <div class="panel-body" style="padding:10px; background-color: #16183f69; border: 1px solid #e9e5e5; border-radius: 5px;">
  23. <form method="POST" action="{{ route('proposal-save') }}" enctype="multipart/form-data">
  24. @csrf
  25. <div class="col-md-12">
  26. <div class="mb-2">
  27. <label class="form-label">Title</label>
  28. <div class="form-icon position-relative">
  29. <input type="text" class="form-control" placeholder="Write your project title here" name="title" required="">
  30. </div>
  31. </div>
  32. </div>
  33. <div class="row">
  34. <div class="col-md-4 back">
  35. <div class="mb-2">
  36. <label class="form-label">Methology</label>
  37. <select class="form-control" id="" name="methology">
  38. <option>Select Methodology</option>
  39. <option>Quantitative </option>
  40. <option>Qualitative </option>
  41. <option>Mixed Method </option>
  42. </select>
  43. </div>
  44. </div>
  45. <div class="col-md-4">
  46. <div class="mb-2">
  47. <label class="form-label">Department</label>
  48. <div class="form-icon position-relative">
  49. <select class="form-control" name="department" required="">
  50. <option selected disabled>Select Department</option>
  51. @foreach($departments as $row)
  52. <option value="{{$row->id}}">{{$row->name}}</option>
  53. @endforeach
  54. </select>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="col-md-4 back">
  59. <div class="mb-2">
  60. <label class="form-label">Funding Status</label>
  61. <select class="form-control" id="" name="status">
  62. <option>Funding Status</option>
  63. <option>Self-Funded</option>
  64. <option>Govt. Scholarship</option>
  65. <option>Other Scholarship</option>
  66. </select>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="row">
  71. <div class="col-md-10">
  72. <label class="form-label" for="proposal">Proposal</label>
  73. <input type="file" accept="application/pdf,application/msword,.doc,.docx" name="documentfile" id="documentfile" class="form-control" required>
  74. </div>
  75. <div class="col-md-2">
  76. <div class="mt-4 pt-3">
  77. <div class="text-end">
  78. <span class="btn btncl btn-proposal-cancel"><i class="fa fa-refresh icncl"></i></span>
  79. <button class="btn btn2">Save</button>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </form>
  85. </div>
  86. </div>
  87. </div>
  88. <!--proposal table -->
  89. <div class="col-md-12 mb-1">
  90. @if(count($proposal)>0)
  91. <div class="scrolled_content_part" style="width: 96%; margin-left: 20px;">
  92. <div class="single_ad_pref_item1">
  93. <div class="serial" style="width: 7%;">
  94. <strong style="font-size:13px; margin-left: 10px;">Ref</strong>
  95. </div>
  96. <div class="pro_title" style="width: 78%;">
  97. <strong style="font-size:13px;">Title</strong></br>
  98. </div>
  99. <!-- <div class="pro_type" style="width: 27%">
  100. <strong style="font-size:13px;">File Type</strong>
  101. </div> -->
  102. <div class="pro_type" style="width: 23%">
  103. <strong style="font-size:13px;">Updated</strong>
  104. </div>
  105. <div class="actions">
  106. <strong style="font-size:13px; margin-right: 6px;">Action</strong>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="col-md-12 mb-1">
  112. <div style="width: 96%; margin-left: 20px;">
  113. @foreach($proposal as $key=>$row)
  114. <div class="single_ad_pref_item2 single_edit_item">
  115. <div class="student mt-2 pt-1" style="width: 7.9%;">
  116. <strong style="font-size:13px; margin-left: 20px;">{{$row->proposal_ref}}</strong>
  117. </div>
  118. <div class="pro_title mb-2" style="width: 80%;">
  119. <h6 style="font-size:13px !important;; font-weight:600 !important;">{{$row->title}}</h6>
  120. <div style="margin-top: -11px; display: block;">
  121. <span style="font-size:12px;">{{$row->methology}}</span>
  122. <span> • </span>
  123. @php
  124. $department =model('Department')::where('id',$row->department)->first();
  125. @endphp
  126. <span style="font-size:12px;">{{$department->name ?? ''}}</span>
  127. <span> • </span>
  128. <span style="font-size:12px;">{{$row->status}}</span>
  129. </div>
  130. </div>
  131. <div class="pro_title" style="width: 10%; text-align: center; margin-top: -3px;">
  132. <strong style="font-size:13px; font-weight:600 !important; ">{{date('d M Y', strtotime($row->created_at))}}</strong>
  133. <span style="font-size:12px; display: block;">{{$row->created_at->diffForHumans()}}</span>
  134. </div>
  135. <div class="mt-2 pt-1" style="margin-right: 10px; width: 20%; text-align: end;">
  136. @if(student_proposal($row->student_id, $row->id))
  137. <a class="edit_proposal" data-id="{{$row->id}}">
  138. <i class="fa fa-edit change_pass_btn" style="font-size: 13px !important; padding: 4px;"></i>
  139. </a>
  140. @endif
  141. @if(isset($row->document_file))
  142. <span class="open_modal_page hand" data-title="View Proposal" data-url="{{route('modal-get',['name'=>'view_student_proposal','id'=>$row->id])}}">
  143. <i class="fa fa-eye change_pass_btn" style="font-size: 13px !important; padding: 4px;"></i>
  144. </span>
  145. @endif
  146. @if(student_proposal($row->student_id, $row->id))
  147. <i class="fa fa-trash change_pass_btn delete_proposal" style="font-size: 13px !important; padding: 4px;" data-id="{{ $row->id }}"></i>
  148. @endif
  149. </div>
  150. </div>
  151. @endforeach
  152. </div>
  153. @else
  154. <div style="padding: 0px 22px;">
  155. <div class="alert mt-2 text-center" style="border-color: #e9f0f3; font-size: 12px !important; color: #dc3545; border-radius: 30px; padding: 8px 15px;">
  156. <span>No Proposal available.</span>
  157. </div>
  158. </div>
  159. @endif
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. <!-- Publication edit -->
  165. <div class="col-md-12" style="background: #ffffff; border-radius: 0.25rem;">
  166. <div class="p-3">
  167. <div class="container-fluid" style="padding:0px !important;">
  168. <div class="row">
  169. <div style="margin:0px !important; font-size:13px; font-weight: 600;">
  170. <div class="row">
  171. <div class="col-md-6">
  172. Have you ever attended any conferences to present your papers?
  173. </div>
  174. <div class="col-md-6" style="text-align: end;">
  175. <div class="pretty p-default p-round">
  176. <input type="radio" class="is_attended_conference" data-id="{{$user_info->id}}" name="is_attended_conference" value="yes" @if($user_info->is_attended_conference ==1) {{'checked'}} @endif @if($is_freez_profile) disabled @endif>
  177. <div class="state p-primary">
  178. <label class="form-check-label" style="font-size: 12px;">Yes</label>
  179. </div>
  180. </div>
  181. <div class="pretty p-default p-round">
  182. <input type="radio" class="is_attended_conference" data-id="{{$user_info->id}}" name="is_attended_conference" value="no" @if($user_info->is_attended_conference ==2) {{'checked'}} @endif @if($is_freez_profile) disabled @endif>
  183. <div class="state p-primary">
  184. <label class="form-check-label" style="font-size: 12px;">No</label>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="col-md-12 mt-4" style="background: rgb(255, 255, 255);border-radius: 0.25rem;">
  195. <div class="mt-3 mb-2">
  196. <div class="container-fluid" style="padding:0px !important;">
  197. <div class="row">
  198. <div class="col-md-12">
  199. <div class="row">
  200. <div class="col-md-6">
  201. <div style="margin:0px !important; font-size:12px;font-weight: 600;">
  202. <i class="fa fa-graduation-cap" style="padding: 7px;"></i> PUBLICATION
  203. <div class="pretty p-default p-round" style="margin-left: 12px;">
  204. <input type="radio" class="is_publication " data-id="{{$user_info->id}}" name="is_publication" value="yes" {{ Auth::user()->is_publication == 1 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  205. <div class="state p-primary">
  206. <label class="form-check-label" style="font-size: 12px;font-weight:bold;">Yes</label>
  207. </div>
  208. </div>
  209. @if(count($publications) > 0)
  210. <div class="pretty p-default p-round">
  211. <input type="radio" class="all_publication_delete" data-id="{{$user_info->id}}" name="is_publication" value="no" {{ Auth::user()->is_publication == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  212. <div class="state p-primary">
  213. <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
  214. </div>
  215. </div>
  216. @else
  217. <div class="pretty p-default p-round">
  218. <input type="radio" class="is_publication" data-id="{{$user_info->id}}" name="is_publication" value="no" {{ Auth::user()->is_publication == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  219. <div class="state p-primary">
  220. <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
  221. </div>
  222. </div>
  223. @endif
  224. </div>
  225. </div>
  226. <div class="col-md-6 mt-2">
  227. <div class="text-end" id="add_publication" @if(Auth::user()->is_publication == 2 || Auth::user()->is_publication == NULL) style="display:none;" @endif >
  228. <button type="button" class="btn btn2 btn-publication-open @if($is_freez_profile) disabled @endif">Add</button>
  229. </div>
  230. </div>
  231. </div>
  232. </div> <!--box-end-->
  233. <div class="col-md-12 mt-1">
  234. <div id="demo17">
  235. <div class="panel-body publication_info" style="padding:10px; background-color: #16183f69; border: 1px solid #e9e5e5; border-radius: 5px; display:none;">
  236. {{-- <form method="" action=""> --}}
  237. <div class="row">
  238. <div class="col-md-5">
  239. <div class="mb-1">
  240. <label class="form-label" for="publication">Publication <span class="text-danger">*</span></label>
  241. <div class="form-icon position-relative">
  242. <input type="text" for="publication" name="publication" id="publication" class="form-control ps-2" required="">
  243. </div>
  244. </div>
  245. </div>
  246. <div class="col-md-5">
  247. <div class="mb-1">
  248. <label class="form-label">Status<span class="text-danger">*</span></label>
  249. <div class="form-icon position-relative">
  250. <select name="status" id="publication_status" class="form-control frm" required="">
  251. <option disabled="" selected="" value="">Choose one....</option>
  252. <option value="1">Published</option>
  253. <option value="2">Under Review</option>
  254. <option value="3">Draft stage</option>
  255. </select>
  256. </div>
  257. </div>
  258. </div>
  259. <div class="col-md-2">
  260. <div class="mt-4 pt-3">
  261. <div class="text-end">
  262. <span class="btn btncl"><i class="fa fa-refresh icncl btn-publication-cancel"></i></span>
  263. <button class="btn btn2" id="submit_publication">Save</button>
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. {{-- </form> --}}
  269. </div>
  270. </div>
  271. </div><!--end col-->
  272. </div>
  273. </div>
  274. <div id="publication_load"></div>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. <!-- Education edit -->
  280. <div class="col-md-12 mt-4" style="background: rgb(255, 255, 255);border-radius: 0.25rem;">
  281. <div class="mt-3 mb-2">
  282. <div class="container-fluid" style="padding:0px !important;">
  283. <div class="row">
  284. <div class="col-md-12">
  285. <div class="row">
  286. <div class="col-md-6">
  287. <div style="margin:0px !important; font-size:12px;font-weight: 600;">
  288. <i class="fa fa-graduation-cap" style="padding: 7px;"></i> EDUCATION HISTORY
  289. {{-- <div class="pretty p-default p-round" style="margin-left: 12px;">
  290. <input type="radio" class="is_education" data-id="{{$user_info->id}}" name="is_education" value="yes" {{ Auth::user()->is_education == 1 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  291. <div class="state p-primary">
  292. <label class="form-check-label" style="font-size: 12px;font-weight:bold;">Yes</label>
  293. </div>
  294. </div>
  295. @if(count($institution) > 0)
  296. <div class="pretty p-default p-round">
  297. <input type="radio" class="all_education_history_delete" data-id="{{$user_info->id}}" name="is_education" value="no" {{ Auth::user()->is_education == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  298. <div class="state p-primary">
  299. <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
  300. </div>
  301. </div>
  302. @else
  303. <div class="pretty p-default p-round">
  304. <input type="radio" class="is_education" data-id="{{$user_info->id}}" name="is_education" value="no" {{ Auth::user()->is_education == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  305. <div class="state p-primary">
  306. <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
  307. </div>
  308. </div>
  309. @endif --}}
  310. </div>
  311. </div>
  312. <div class="col-md-6">
  313. <div class="text-end mt-2 pt-1" id="add_education">
  314. <button type="button" class="btn btn2 btn-education-open @if($is_freez_profile) disabled @endif">Add</button>
  315. </a>
  316. </div>
  317. </div>
  318. </div>
  319. </div> <!--box-end-->
  320. <div class="col-md-12 mt-1">
  321. <div id="demo">
  322. <div class="panel-body education_info" style="padding:10px; background-color: #16183f69; border: 1px solid #e9e5e5; border-radius: 5px; display:none;">
  323. <form method="POST" action="{{ route('institution-save') }}">
  324. @csrf
  325. <div class="row">
  326. <div class="col-md-4">
  327. <div class="mb-1">
  328. <label class="form-label">Academic level <span class="text-danger">*</span></label>
  329. <div class="form-icon position-relative">
  330. <select name="academiclevel" id="academic level" class="form-control frm" required="">
  331. <option disabled="" selected="" value="">Choose one....</option>
  332. @foreach($academic_level as $row)
  333. <option value="{{$row->id}}">{{$row->name}}</option>
  334. @endforeach
  335. </select>
  336. </div>
  337. </div>
  338. </div>
  339. <div class="col-md-4">
  340. <div class="mb-1">
  341. <label class="form-label" for="subject">Subject <span class="text-danger">*</span></label>
  342. <div class="form-icon position-relative">
  343. <input type="text" for="subject" name="subject" class="form-control ps-2" required="">
  344. </div>
  345. </div>
  346. </div>
  347. <div class="col-md-4">
  348. <div class="mb-1">
  349. <label class="form-label" for="">Institution<span class="text-danger">*</span></label>
  350. <div class="form-icon position-relative">
  351. <input type="text" for="institution" name="institution" class="form-control ps-2" placeholder="" required="">
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. <div class="row">
  357. <div class="col-md-4">
  358. <div class="mb-1">
  359. <label class="form-label">Passing Year <span class="text-danger">*</span></label>
  360. <div class="form-icon position-relative">
  361. <select name="passingyear" id="passing year" class="form-control frm" required="">
  362. <option disabled="" selected="" value="">Year</option>
  363. @php
  364. $firstYear = (int)date('Y') - 20;
  365. $lastYear = $firstYear + 20;
  366. for($i=$firstYear;$i<=$lastYear;$i++){
  367. @endphp
  368. <option value="{{$i}}">{{$i}}</option>
  369. @php
  370. }
  371. @endphp
  372. </select>
  373. </div>
  374. </div>
  375. </div>
  376. <div class="col-md-4">
  377. <div class="mb-1">
  378. <label class="form-label">Result <span class="text-danger">*</span></label>
  379. <div class="form-icon position-relative">
  380. <input type="text" class="form-control ps-2" name="result" placeholder="" required="">
  381. </div>
  382. </div>
  383. </div>
  384. <div class="col-md-4">
  385. <div class="mt-4 pt-3">
  386. <div class="text-end">
  387. <span class="btn btncl"><i class="fa fa-refresh icncl btn-education-cancel"></i></span>
  388. <button class="btn btn2">Save</button>
  389. </div>
  390. </div>
  391. </div>
  392. </div>
  393. </form>
  394. </div>
  395. </div>
  396. </div><!--end col-->
  397. </div>
  398. </div>
  399. <div id="education_history_load"></div>
  400. </div>
  401. </div>
  402. <div class="col-md-12 mt-4" style="background: rgb(255, 255, 255);border-radius: 0.25rem;">
  403. <div class="row align-items-center mt-4">
  404. <div class="col-md-12" style="background: rgb(255, 255, 255);border-radius: 0.25rem;">
  405. <div class="education">
  406. <i class="fa fa-briefcase" style="padding: 7px;"></i>WORK EXPERIENCE
  407. </div>
  408. <div class="row">
  409. <div class="col-md-6 mt-2">
  410. <div style="margin:0px !important; font-size:12px;font-weight: 600;">
  411. Do you have any Work Experience?
  412. <div class="pretty p-default p-round">
  413. <input type="radio" class="work_experience" data-id="{{$user_info->id}}" name="work_experience" value="yes" {{ Auth::user()->is_work_experience == 1 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  414. <div class="state p-primary">
  415. <label class="form-check-label" style="font-size: 12px;font-weight:bold;">Yes</label>
  416. </div>
  417. </div>
  418. @if(count($work_experience) > 0)
  419. <div class="pretty p-default p-round">
  420. <input type="radio" class="all_work_experience_delete" data-id="{{$user_info->id}}" name="work_experience" value="no" {{ Auth::user()->is_work_experience == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  421. <div class="state p-primary">
  422. <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
  423. </div>
  424. </div>
  425. @else
  426. <div class="pretty p-default p-round">
  427. <input type="radio" class="work_experience" data-id="{{$user_info->id}}" name="work_experience" value="no" {{ Auth::user()->is_work_experience == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  428. <div class="state p-primary">
  429. <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
  430. </div>
  431. </div>
  432. @endif
  433. </div>
  434. </div>
  435. <div class="col-md-6 mt-2" id="add_work" @if(Auth::user()->is_work_experience == 2 || Auth::user()->is_work_experience == NULL) style="display:none;" @endif>
  436. <div class="text-end" style="margin:0px !important;">
  437. <button type="button" class="btn btn2 btn-workexp-open @if($is_freez_profile) disabled @endif" >Add</button>
  438. </div>
  439. </div>
  440. </div>
  441. <div class="col-md-12 mt-2">
  442. <div id="demo1">
  443. <div class="panel-body workexp_info" style="padding:10px; background-color: #16183f69; border: 1px solid #e9e5e5; border-radius: 5px; display: none;">
  444. <form method="POST" action="{{ route('work-save') }}">
  445. @csrf
  446. <div class="row">
  447. <div class="col-md-3">
  448. <div class="mb-1">
  449. <label class="form-label">Company Name <span class="text-danger">*</span></label>
  450. <div class="form-icon position-relative">
  451. <input type="text" for="company name" name="companyname" class="form-control ps-2" placeholder="Company Name" required="">
  452. </div>
  453. </div>
  454. </div>
  455. <div class="col-md-3">
  456. <div class="mb-1">
  457. <label class="form-label" for="designation">Designation <span class="text-danger">*</span></label>
  458. <div class="form-icon position-relative">
  459. <input type="text" for="designation" name="designation" class="form-control ps-2" placeholder="Designation" required="">
  460. </div>
  461. </div>
  462. </div>
  463. <div class="col-md-3">
  464. <div class="row">
  465. <div class="col-md-6">
  466. <div class="mb-1">
  467. <label class="form-label">Start Date <span class="text-danger">*</span></label>
  468. <div class="form-icon position-relative">
  469. <select name="startdate" id="start date" class="form-control frm" required="">
  470. <option disabled="" selected="" value="">Year</option>
  471. @php
  472. $firstYear = (int)date('Y') - 20;
  473. $lastYear = $firstYear + 20;
  474. for($i=$firstYear;$i<=$lastYear;$i++){
  475. @endphp
  476. <option value="{{$i}}">{{$i}}</option>
  477. @php
  478. }
  479. @endphp
  480. </select>
  481. </div>
  482. </div>
  483. </div>
  484. <div class="col-md-6">
  485. <div class="mb-1 mt-2">
  486. <label class="form-label"></label>
  487. <div class="form-icon position-relative">
  488. <select name="startmonth" id="month" class="form-control frm" required="">
  489. <option disabled="" selected="" value="">Month</option>
  490. <option value="01">January</option>
  491. <option value="02">February</option>
  492. <option value="03">March</option>
  493. <option value="04">April</option>
  494. <option value="05">May</option>
  495. <option value="06">June</option>
  496. <option value="07">July</option>
  497. <option value="08">August</option>
  498. <option value="09">September</option>
  499. <option value="10">October</option>
  500. <option value="11">November</option>
  501. <option value="12">December</option>
  502. </select>
  503. </div>
  504. </div>
  505. </div>
  506. </div>
  507. </div>
  508. <div class="col-md-3 mt-4 pt-2" style="display:flex; font-size:13px; font-weight:600; color: white;">
  509. Currently working in that company?
  510. <div class="form-check form-switch" id="checkCurrentlyWorking" style="margin-top: 14px;">
  511. <input class="form-check-input" type="checkbox" name="currentlyworking" value="0" onchange="checkCurrentlyWorking(this)">
  512. <label class="form-check-label" for="checkCurrentlyWorking"></label>
  513. </div>
  514. </div>
  515. <div class="col-md-3" id="end_date_div">
  516. <div class="row">
  517. <div class="col-md-6">
  518. <div class="mb-1">
  519. <label class="form-label">End Date <span class="text-danger">*</span></label>
  520. <div class="form-icon position-relative">
  521. <select name="enddate" id="end date" class="form-control frm">
  522. <option disabled="" selected="" value="">Year</option>
  523. @php
  524. $firstYear = (int)date('Y') - 20;
  525. $lastYear = $firstYear + 20;
  526. for($i=$firstYear;$i<=$lastYear;$i++){
  527. @endphp
  528. <option value="{{$i}}">{{$i}}</option>
  529. @php
  530. }
  531. @endphp
  532. </select>
  533. </div>
  534. </div>
  535. </div>
  536. <div class="col-md-6">
  537. <div class="mb-1 mt-2">
  538. <label class="form-label"></label>
  539. <div class="form-icon position-relative">
  540. <select name="endmonth" id="month" class="form-control frm">
  541. <option disabled="" selected="" value="">Month</option>
  542. <option value="01">January</option>
  543. <option value="02">February</option>
  544. <option value="03">March</option>
  545. <option value="04">April</option>
  546. <option value="05">May</option>
  547. <option value="06">June</option>
  548. <option value="07">July</option>
  549. <option value="08">August</option>
  550. <option value="09">September</option>
  551. <option value="10">October</option>
  552. <option value="11">November</option>
  553. <option value="12">December</option>
  554. </select>
  555. </div>
  556. </div>
  557. </div>
  558. </div>
  559. </div>
  560. </div>
  561. <div class="col-md-12">
  562. <div class="mt-2">
  563. <div class="text-end">
  564. <span class="btn btncl btn-workexp-cancel"><i class="fa fa-refresh icncl"></i></span>
  565. <button class="btn btn2" type="submit">Save</button>
  566. </div>
  567. </div>
  568. </div>
  569. </form>
  570. </div>
  571. </div>
  572. </div>
  573. <div id="work_experience_load"></div>
  574. </div>
  575. </div><!--end row-->
  576. </div>
  577. <div class="col-md-12 mt-4" style="background: rgb(255, 255, 255);border-radius: 0.25rem;">
  578. <div class="row align-items-center mt-4 mb-4 pb-2">
  579. <div class="col-md-12" style="background: rgb(255, 255, 255);border-radius: 0.25rem;">
  580. <div class="education">
  581. <i class="fa fa-align-center" style="padding: 7px;"></i>ENGLISH LANGUAGE PROFICIENCY
  582. </div>
  583. <div class="row">
  584. <div class="col-md-6 mt-2">
  585. <div style="margin:0px !important; font-size:12px;font-weight: 600;">
  586. Do you have any English Test Certificate?
  587. <div class="pretty p-default p-round">
  588. <input type="radio" class="is_test_score" data-id="{{$user_info->id}}" name="is_test_score" value="yes" {{ Auth::user()->is_test_score == 1 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  589. <div class="state p-primary">
  590. <label class="form-check-label" style="font-size: 12px;font-weight:bold;">Yes</label>
  591. </div>
  592. </div>
  593. @if(count($score) > 0)
  594. <div class="pretty p-default p-round">
  595. <input type="radio" class="all_test_score_delete" data-id="{{$user_info->id}}" name="is_test_score" value="no" {{ Auth::user()->is_test_score == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  596. <div class="state p-primary">
  597. <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
  598. </div>
  599. </div>
  600. @else
  601. <div class="pretty p-default p-round">
  602. <input type="radio" class="is_test_score" data-id="{{$user_info->id}}" name="is_test_score" value="no" {{ Auth::user()->is_test_score == 2 ? 'checked' : ''}} @if($is_freez_profile) disabled @endif>
  603. <div class="state p-primary">
  604. <label class="form-check-label" style="font-size: 12px; font-weight:bold;">No</label>
  605. </div>
  606. </div>
  607. @endif
  608. </div>
  609. </div>
  610. <div class="col-md-6 mt-2" id="add_test_score" @if(Auth::user()->is_test_score == 2 || Auth::user()->is_test_score == NULL) style="display:none;" @endif>
  611. <div class="text-end" style="margin:0px !important;">
  612. <button type="button" class="btn btn2 btn-score-open @if($is_freez_profile) disabled @endif">Add</button>
  613. </div>
  614. </div>
  615. </div>
  616. <div class="col-md-12">
  617. <div id="demo2" class="score_info" style="display: none;">
  618. <div class="col-md-12">
  619. <div class="col-md-2">
  620. <div class="btn-group test_list">
  621. <button class="btn btn5" onclick="changeTestName('IELTS')">IELTS</button>
  622. <button class="btn btn6" onclick="changeTestName('PTE')">PTE</button>
  623. <button class="btn btn7" onclick="changeTestName('TOEFL')">TOEFL</button>
  624. </div>
  625. </div>
  626. <div class="panel-body" style="padding:10px; background-color: #16183f69; border: 1px solid #e9e5e5; border-radius: 5px;">
  627. <form method="POST" action="{{ route('score-save') }}">
  628. @csrf
  629. <div class="row">
  630. <div class="col-md-4">
  631. <div class="mb-1">
  632. <label class="form-label" for="test date">Test Date</label>
  633. <div class="form-icon position-relative">
  634. <input name="testdate" type="text" class="form-control start" placeholder="Test Date" autocomplete="off">
  635. </div>
  636. </div>
  637. </div>
  638. <div class="col-md-4">
  639. <div class="mb-1">
  640. <label class="form-label" for="expiration date">Expiration Date</label>
  641. <div class="form-icon position-relative">
  642. <input name="expirationdate" type="text" class="form-control end" placeholder="Expiration Date" autocomplete="off">
  643. </div>
  644. </div>
  645. </div>
  646. <div class="col-md-4">
  647. <div class="mb-1">
  648. <label class="form-label" for="test name">Test Name</label>
  649. <div class="form-icon position-relative">
  650. <input type="text" for="test name" name="testname" class="form-control ps-2" id="testname" placeholder="IELTS" required="">
  651. </div>
  652. </div>
  653. </div>
  654. <div class="row">
  655. <div class="col-md-2 mt-2">
  656. <div class="mb-1">
  657. <label class="form-label">Overall Score</label>
  658. <div class="form-icon position-relative">
  659. <input type="text" for="overall score" name="overallscore" class="form-control ps-2" placeholder="Enter Score" required="">
  660. </div>
  661. </div>
  662. </div>
  663. <div class="col-md-2">
  664. <div class="mb-1 mt-2">
  665. <label class="form-label">Listening</label>
  666. <div class="form-icon position-relative">
  667. <input type="text" for="listening" name="listening" class="form-control ps-2" placeholder="Enter Score" required="">
  668. </div>
  669. </div>
  670. </div>
  671. <div class="col-md-2">
  672. <div class="mb-1 mt-2">
  673. <label class="form-label">Speaking</label>
  674. <div class="form-icon position-relative">
  675. <input type="text" for="speaking" name="speaking" class="form-control ps-2" placeholder="Enter Score" required="">
  676. </div>
  677. </div>
  678. </div>
  679. <div class="col-md-2">
  680. <div class="mb-1 mt-2">
  681. <label class="form-label">Writing</label>
  682. <div class="form-icon position-relative">
  683. <input type="text" for="writing" name="writing" class="form-control ps-2" placeholder="Enter Score" required="">
  684. </div>
  685. </div>
  686. </div>
  687. <div class="col-md-2">
  688. <div class="mb-1 mt-2">
  689. <label class="form-label">Reading</label>
  690. <div class="form-icon position-relative">
  691. <input type="text" for="reading" name="reading" class="form-control ps-2" placeholder="Enter Score" required="">
  692. </div>
  693. </div>
  694. </div>
  695. <div class="col-md-2">
  696. <div class="mt-4 pt-4">
  697. <div class="text-end">
  698. <span class="btn btncl"><i class="fa fa-refresh icncl btn-score-cancel"></i></span>
  699. <button class="btn btn2">Save</button>
  700. </div>
  701. </div>
  702. </div>
  703. </div>
  704. </div>
  705. </form>
  706. </div>
  707. </div>
  708. </div>
  709. <div id="english_languge_proficiency_load"></div>
  710. </div>
  711. </div>
  712. </div>
  713. </div><!--end col-->
  714. </div><!--end row-->
  715. </div><!--end container-->
  716. </div>
  717. </div><!--end row-->
  718. </div><!--end container-->
  719. </section><!--end section-->
  720. <!-- Hero End -->
  721. @endsection
  722. @push('js')
  723. <script type="text/javascript">
  724. $( function() {
  725. fetch_sub_content(
  726. '#publication_load',
  727. "{{ route('sub-content', ['name'=>'publication_list_load']) }}"
  728. );
  729. fetch_sub_content(
  730. '#education_history_load',
  731. "{{ route('sub-content', ['name'=>'education_history_load']) }}"
  732. );
  733. fetch_sub_content(
  734. '#work_experience_load',
  735. "{{ route('sub-content', ['name'=>'work_experience_load']) }}"
  736. );
  737. fetch_sub_content(
  738. '#english_languge_proficiency_load',
  739. "{{ route('sub-content', ['name'=>'english_languge_proficiency_load']) }}"
  740. );
  741. $('.btn-proposal-open').on('click', function(){
  742. $('.proposal_info').show();
  743. });
  744. $('.btn-proposal-cancel').on('click', function(){
  745. $('.proposal_info').hide();
  746. });
  747. $('.btn-publication-open').on('click', function(){
  748. $('.publication_info').show();
  749. });
  750. $('.btn-publication-cancel').on('click', function(){
  751. $('.publication_info').hide();
  752. });
  753. $('.btn-education-open').on('click', function(){
  754. $('.education_info').show();
  755. });
  756. $('.btn-education-cancel').on('click', function(){
  757. $('.education_info').hide();
  758. });
  759. $('.btn-workexp-open').on('click', function(){
  760. $('.workexp_info').show();
  761. });
  762. $('.btn-workexp-cancel').on('click', function(){
  763. $('.workexp_info').hide();
  764. });
  765. $('.btn-score-open').on('click', function(){
  766. $('.score_info').show();
  767. });
  768. $('.btn-score-cancel').on('click', function(){
  769. $('.score_info').hide();
  770. });
  771. var form_row_added=false;
  772. $('.edit_proposal').on('click', function(){
  773. if(form_row_added){
  774. $('.open_proposal_info_div').remove();
  775. form_row_added=false;
  776. }
  777. var self=$(this);
  778. var self_tr=self.closest('.single_edit_item');
  779. var p_id=self.data('id');
  780. form_row_added=true;
  781. self_tr.after(
  782. "<div class='open_proposal_info_div'><div class='open_proposal_edit_info_div'></div></div>"
  783. );
  784. fetch_sub_content(
  785. '.open_proposal_edit_info_div',
  786. "{{ route('sub-content', ['name'=>'edit_proposal']) }}?p_id="+p_id
  787. );
  788. });
  789. $('.delete_education').on('click', function(e) {
  790. e.preventDefault();
  791. var delete_url="{{ url('education-remove') }}/"+$(this).data('id');
  792. swal({
  793. title: "Are you sure?",
  794. text: "You will not be able to recover this data!",
  795. type: "warning",
  796. showCancelButton: true,
  797. buttonsStyling: false,
  798. confirmButtonClass: 'btn btn-primary',
  799. cancelButtonClass: 'btn btn-light',
  800. confirmButtonText: "Yes, delete!",
  801. cancelButtonText: "No, cancel!"
  802. },
  803. function(isConfirm){
  804. if(isConfirm){
  805. $.ajax({
  806. url:delete_url,
  807. type: "GET",
  808. success: function(data){
  809. setTimeout(function() { location.reload(); }, 1000);
  810. }
  811. });
  812. }
  813. });
  814. });
  815. $('.delete_work').on('click', function(e) {
  816. e.preventDefault();
  817. var delete_url="{{ url('work-remove') }}/"+$(this).data('id');
  818. swal({
  819. title: "Are you sure?",
  820. text: "You will not be able to recover this data!",
  821. type: "warning",
  822. showCancelButton: true,
  823. buttonsStyling: false,
  824. confirmButtonClass: 'btn btn-primary',
  825. cancelButtonClass: 'btn btn-light',
  826. confirmButtonText: "Yes, delete!",
  827. cancelButtonText: "No, cancel!"
  828. },
  829. function(isConfirm){
  830. if(isConfirm){
  831. $.ajax({
  832. url:delete_url,
  833. type: "GET",
  834. success: function(data){
  835. setTimeout(function() { location.reload(); }, 1000);
  836. }
  837. });
  838. }
  839. });
  840. });
  841. $('.delete_score').on('click', function(e) {
  842. e.preventDefault();
  843. var delete_url="{{ url('score-remove') }}/"+$(this).data('id');
  844. swal({
  845. title: "Are you sure?",
  846. text: "You will not be able to recover this data!",
  847. type: "warning",
  848. showCancelButton: true,
  849. buttonsStyling: false,
  850. confirmButtonClass: 'btn btn-primary',
  851. cancelButtonClass: 'btn btn-light',
  852. confirmButtonText: "Yes, delete!",
  853. cancelButtonText: "No, cancel!"
  854. },
  855. function(isConfirm){
  856. if(isConfirm){
  857. $.ajax({
  858. url:delete_url,
  859. type: "GET",
  860. success: function(data){
  861. setTimeout(function() { location.reload(); }, 1000);
  862. }
  863. });
  864. }
  865. });
  866. });
  867. $('.delete_proposal').on('click', function(e) {
  868. e.preventDefault();
  869. var delete_url="{{ url('proposal-remove') }}/"+$(this).data('id');
  870. swal({
  871. title: "Are you sure?",
  872. text: "You will not be able to recover this data!",
  873. type: "warning",
  874. showCancelButton: true,
  875. buttonsStyling: false,
  876. confirmButtonClass: 'btn btn-primary',
  877. cancelButtonClass: 'btn btn-light',
  878. confirmButtonText: "Yes, delete!",
  879. cancelButtonText: "No, cancel!"
  880. },
  881. function(isConfirm){
  882. if(isConfirm){
  883. $.ajax({
  884. url:delete_url,
  885. type: "GET",
  886. success: function(data){
  887. setTimeout(function() { location.reload(); }, 1000);
  888. }
  889. });
  890. }
  891. });
  892. });
  893. $('.is_attended_conference').on('change', function(){
  894. var self =$(this);
  895. var checked =self.val();
  896. var uid= self.data('id');
  897. var form_data={
  898. _token :"{{csrf_token()}}",
  899. 'checked':checked,
  900. 'uid':uid,
  901. }
  902. swal({
  903. title: "Are you sure you want to change status?",
  904. text: "Please check before submitting!",
  905. type: "warning",
  906. showCancelButton: true,
  907. confirmButtonClass: "btn-danger",
  908. cancelButtonClass: "btn-info",
  909. confirmButtonText: "Yes",
  910. cancelButtonText: "No",
  911. closeOnConfirm: true,
  912. closeOnCancel: true
  913. }, function(isConfirm){
  914. if(isConfirm){
  915. $.post("{{ route('ajax-post', ['name'=>'is_attended_conference_status']) }}", form_data, function(res){
  916. pop_up_msg(res.msg);
  917. //window.location.reload();
  918. }).fail(function(err){
  919. pop_up_msg(err_msg(err), 'error');
  920. });
  921. }else{
  922. window.location.reload();
  923. }
  924. });
  925. });
  926. $('#submit_publication').on('click', function(){
  927. var publication =$('#publication').val();
  928. var status =$('#publication_status option:selected').val();
  929. var form_data={
  930. _token: "{{ csrf_token() }}",
  931. publication: publication,
  932. status: status,
  933. }
  934. $.post("{{ route('ajax-post', ['name'=>'add_proposal_publication']) }}", form_data, function(res){
  935. pop_up_msg(res.msg);
  936. $('#publication').val('');
  937. $('#publication_status').val('');
  938. fetch_sub_content(
  939. '#publication_load',
  940. "{{ route('sub-content', ['name'=>'publication_list_load']) }}"
  941. );
  942. }).fail(function(err){
  943. pop_up_msg(err_msg(err), 'error');
  944. });
  945. });
  946. $(".is_publication").on('click',function(){
  947. var self =$(this);
  948. var value =self.val();
  949. var uid= self.data('id');
  950. var form_data={
  951. _token :"{{csrf_token()}}",
  952. 'value':value,
  953. 'uid':uid,
  954. }
  955. $.post("{{ route('ajax-post', ['name'=>'publication_status_update']) }}", form_data, function(res){
  956. pop_up_msg(res.msg);
  957. }).fail(function(err){
  958. pop_up_msg(err_msg(err), 'error');
  959. });
  960. if(value=="yes"){
  961. $('#add_publication').css("display", "block");
  962. }else{
  963. $('#add_publication').css("display", "none");
  964. }
  965. });
  966. $(".is_education").on('click',function(){
  967. var self =$(this);
  968. var value =self.val();
  969. var uid= self.data('id');
  970. var form_data={
  971. _token :"{{csrf_token()}}",
  972. 'value':value,
  973. 'uid':uid,
  974. }
  975. $.post("{{ route('ajax-post', ['name'=>'education_status_update']) }}", form_data, function(res){
  976. pop_up_msg(res.msg);
  977. }).fail(function(err){
  978. pop_up_msg(err_msg(err), 'error');
  979. });
  980. if(value=="yes"){
  981. $('#add_education').css("display", "block");
  982. }else{
  983. $('#add_education').css("display", "none");
  984. }
  985. });
  986. $(".work_experience").on('click',function(){
  987. var self =$(this);
  988. var value =self.val();
  989. var uid= self.data('id');
  990. var form_data={
  991. _token :"{{csrf_token()}}",
  992. 'value':value,
  993. 'uid':uid,
  994. }
  995. $.post("{{ route('ajax-post', ['name'=>'work_experience_status_update']) }}", form_data, function(res){
  996. pop_up_msg(res.msg);
  997. //window.location.reload();
  998. }).fail(function(err){
  999. pop_up_msg(err_msg(err), 'error');
  1000. });
  1001. if(value=="yes"){
  1002. $('#add_work').css("display", "block");
  1003. }else{
  1004. $('#add_work').css("display", "none");
  1005. }
  1006. });
  1007. $(".is_test_score").on('click',function(){
  1008. var self =$(this);
  1009. var value =self.val();
  1010. var uid= self.data('id');
  1011. var form_data={
  1012. _token :"{{csrf_token()}}",
  1013. 'value':value,
  1014. 'uid':uid,
  1015. }
  1016. $.post("{{ route('ajax-post', ['name'=>'test_score_status_update']) }}", form_data, function(res){
  1017. pop_up_msg(res.msg);
  1018. //window.location.reload();
  1019. }).fail(function(err){
  1020. pop_up_msg(err_msg(err), 'error');
  1021. });
  1022. if(value=="yes"){
  1023. $('#add_test_score').css("display", "block");
  1024. }else{
  1025. $('#add_test_score').css("display", "none");
  1026. }
  1027. });
  1028. $(".all_publication_delete").on('click',function(){
  1029. var self =$(this);
  1030. var uid= self.data('id');
  1031. var form_data={
  1032. _token :"{{csrf_token()}}",
  1033. 'uid':uid,
  1034. }
  1035. swal({
  1036. title: "Are you sure?",
  1037. text: "You will not be able to recover this data!",
  1038. type: "warning",
  1039. showCancelButton: true,
  1040. buttonsStyling: false,
  1041. confirmButtonClass: 'btn btn-primary',
  1042. cancelButtonClass: 'btn btn-light',
  1043. confirmButtonText: "Yes, delete!",
  1044. cancelButtonText: "No, cancel!"
  1045. },
  1046. function(isConfirm){
  1047. if(isConfirm){
  1048. $.post("{{ route('ajax-post', ['name'=>'all_publication_delete']) }}", form_data, function(res){
  1049. pop_up_msg(res.msg);
  1050. //window.location.reload();
  1051. fetch_sub_content(
  1052. '#publication_load',
  1053. "{{ route('sub-content', ['name'=>'publication_list_load']) }}"
  1054. );
  1055. }).fail(function(err){
  1056. pop_up_msg(err_msg(err), 'error');
  1057. });
  1058. }
  1059. });
  1060. });
  1061. $(".all_education_history_delete").on('click',function(){
  1062. var self =$(this);
  1063. var uid= self.data('id');
  1064. var form_data={
  1065. _token :"{{csrf_token()}}",
  1066. 'uid':uid,
  1067. }
  1068. swal({
  1069. title: "Are you sure?",
  1070. text: "You will not be able to recover this data!",
  1071. type: "warning",
  1072. showCancelButton: true,
  1073. buttonsStyling: false,
  1074. confirmButtonClass: 'btn btn-primary',
  1075. cancelButtonClass: 'btn btn-light',
  1076. confirmButtonText: "Yes, delete!",
  1077. cancelButtonText: "No, cancel!"
  1078. },
  1079. function(isConfirm){
  1080. if(isConfirm){
  1081. $.post("{{ route('ajax-post', ['name'=>'all_education_history_delete']) }}", form_data, function(res){
  1082. pop_up_msg(res.msg);
  1083. //window.location.reload();
  1084. fetch_sub_content(
  1085. '#education_history_load',
  1086. "{{ route('sub-content', ['name'=>'education_history_load']) }}"
  1087. );
  1088. }).fail(function(err){
  1089. pop_up_msg(err_msg(err), 'error');
  1090. });
  1091. }
  1092. });
  1093. });
  1094. $(".all_work_experience_delete").on('click',function(){
  1095. var self =$(this);
  1096. var uid= self.data('id');
  1097. var form_data={
  1098. _token :"{{csrf_token()}}",
  1099. 'uid':uid,
  1100. }
  1101. swal({
  1102. title: "Are you sure?",
  1103. text: "You will not be able to recover this data!",
  1104. type: "warning",
  1105. showCancelButton: true,
  1106. buttonsStyling: false,
  1107. confirmButtonClass: 'btn btn-primary',
  1108. cancelButtonClass: 'btn btn-light',
  1109. confirmButtonText: "Yes, delete!",
  1110. cancelButtonText: "No, cancel!"
  1111. },
  1112. function(isConfirm){
  1113. if(isConfirm){
  1114. $.post("{{ route('ajax-post', ['name'=>'all_work_experience_delete']) }}", form_data, function(res){
  1115. pop_up_msg(res.msg);
  1116. //window.location.reload();
  1117. fetch_sub_content(
  1118. '#work_experience_load',
  1119. "{{ route('sub-content', ['name'=>'work_experience_load']) }}"
  1120. );
  1121. }).fail(function(err){
  1122. pop_up_msg(err_msg(err), 'error');
  1123. });
  1124. }
  1125. });
  1126. });
  1127. $(".all_test_score_delete").on('click',function(){
  1128. var self =$(this);
  1129. var uid= self.data('id');
  1130. var form_data={
  1131. _token :"{{csrf_token()}}",
  1132. 'uid':uid,
  1133. }
  1134. swal({
  1135. title: "Are you sure?",
  1136. text: "You will not be able to recover this data!",
  1137. type: "warning",
  1138. showCancelButton: true,
  1139. buttonsStyling: false,
  1140. confirmButtonClass: 'btn btn-primary',
  1141. cancelButtonClass: 'btn btn-light',
  1142. confirmButtonText: "Yes, delete!",
  1143. cancelButtonText: "No, cancel!"
  1144. },
  1145. function(isConfirm){
  1146. if(isConfirm){
  1147. $.post("{{ route('ajax-post', ['name'=>'all_test_score_delete']) }}", form_data, function(res){
  1148. pop_up_msg(res.msg);
  1149. //window.location.reload();
  1150. fetch_sub_content(
  1151. '#english_languge_proficiency_load',
  1152. "{{ route('sub-content', ['name'=>'english_languge_proficiency_load']) }}"
  1153. );
  1154. }).fail(function(err){
  1155. pop_up_msg(err_msg(err), 'error');
  1156. });
  1157. }
  1158. });
  1159. });
  1160. });
  1161. </script>
  1162. @endpush