⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.23
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
public_html
/
resources
/
views
/
user
/
cv
/
View File Name :
sections.blade.php
@extends('user.layout') @section('content') <div class="page-header"> <h4 class="page-title">{{ $keywords['Sections'] ?? __('Sections') }}</h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="{{ route('user-dashboard') }}"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="{{ route('user.cv') }}">{{ $keywords['CV_Management'] ?? __('CVs Management') }}</a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#">{{ $cv->cv_name }}</a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#">{{ $keywords['Sections'] ?? __('Sections') }}</a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="row"> <div class="col-lg-4"> <div class="card-title d-inline-block">{{ $keywords['Sections'] ?? __('Sections') }}</div> </div> <div class="col-lg-4"> </div> <div class="col-lg-4 mt-2 mt-lg-0"> <a class="btn btn-primary float-right text-white" data-toggle="modal" data-target="#createModal">{{ $keywords['Add_Section'] ?? __('Add Section') }}</a> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> @if (count($sections) == 0) <h3 class="text-center">{{ $keywords['NO_SECTION_FOUND'] ?? __('NO SECTION FOUND') }}</h3> @else <div> <p class="text-warning mb-0">** {{ $keywords['Drag_and_Drop_the_sections_to_change_the_order'] ?? __('Drag & Drop the sections to change the order') }} </p> <table class="table table-striped mt-3"> <thead> <tr> <th scope="col"> # </th> <th scope="col">{{ $keywords['Icon'] ?? __('Icon') }}</th> <th scope="col">{{ $keywords['Section_Name'] ?? __('Section Name') }} </th> @if ($cv->template == 1) <th scope="col"> {{ $keywords['Column_Side'] ?? __('Column Side') }}</th> @endif <th scope="col">{{ $keywords['Actions'] ?? __('Actions') }}</th> </tr> </thead> <tbody id="sortable"> @foreach ($sections as $key => $section) <tr class="ui-state-default" data-id="{{ $section->id }}"> <td> <span class="ui-icon ui-icon-arrowthick-2-n-s"></span> </td> <td> <i class="{{ $section->icon }}"></i> </td> <td dir="{{ $section->user_cv->direction == 2 ? 'rtl' : 'ltr' }}"> {!! $section->name !!}</td> @if ($cv->template == 1) <td>{{ $section->column == 1 ? 'Left' : 'Right' }}</td> @endif <td> <a class="btn btn-secondary btn-sm text-white" href="{{ route('user.cv.section.edit', $section->id) . '?language=' . request('language') }}"> <span class="btn-label"> <i class="fas fa-edit"></i> </span> {{ $keywords['Edit'] ?? __('Edit') }} </a> <a class="btn btn-secondary btn-sm text-white" href="{{ route('user.cv.section.content', $section->id) . '?language=' . request('language') }}"> <span class="btn-label"> <i class="fas fa-edit"></i> </span> {{ $keywords['Section_Content'] ?? __('Section Content') }} </a> <form class="deleteform d-inline-block" action="{{ route('user.cv.section.delete') }}" method="post"> @csrf <input type="hidden" name="section_id" value="{{ $section->id }}"> <button type="submit" class="btn btn-danger btn-sm deletebtn"> <span class="btn-label"> <i class="fas fa-trash"></i> </span> {{ $keywords['Delete'] ?? __('Delete') }} </button> </form> </td> </tr> @endforeach </tbody> </table> </div> @endif </div> </div> </div> </div> </div> </div> <!-- Create Section Modal --> <div class="modal fade" id="createModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle"> {{ $keywords['Add_Section'] ?? __('Add Section') }}</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> @if ($cv->direction == 2) <div class="col-12"> <div class="alert alert-info text-dark"> If you want to enter <strong>LTR word / text</strong> in <strong>Section Name</strong> field, then wrap that <strong>word / text</strong> with <strong><code>{{ '<span dir="ltr"></span>' }}</code></strong> <br> For example, <div class="row"> <div class="col-6"> <ul class="pl-3"> <li class="mb-2"> <input dir="rtl" class="form-control" value="{{ '<span dir="ltr">This is LTR Text</span>' }} هناك حقيقة"> </li> <li class="mb-2"> <input dir="rtl" class="form-control" value="هناك حقيقة {{ '<span dir="ltr">1234567</span>' }}"> </li> <li> <input dir="rtl" class="form-control" value="{{ '<span dir="ltr">This is LTR Text</span>' }}"> </li> </ul> </div> </div> </div> </div> @endif <form id="ajaxForm" enctype="multipart/form-data" class="modal-form" action="{{ route('user.cv.section.store') }}" method="POST"> @csrf <input type="hidden" name="cv_id" value="{{ $cv->id }}"> <div class="row"> <div class="col-lg-6"> <div class="form-group"> <label for="">{{ $keywords['Icon'] ?? __('Icon') }} **</label> <div class="btn-group d-block"> <button type="button" class="btn btn-primary iconpicker-component"><i class="fas fa-heart"></i></button> <button type="button" class="icp icp-dd btn btn-primary dropdown-toggle" data-selected="fa-car" data-toggle="dropdown"> </button> <div class="dropdown-menu"></div> </div> <input id="inputIcon" type="hidden" name="icon" value="fas fa-heart"> <p class="em text-danger mb-0" id="erricon"></p> </div> </div> <div class="col-lg-6"> <div class="form-group"> <label for="">{{ $keywords['Section_Name'] ?? __('Section Name') }} **</label> <input type="text" class="form-control {{ $cv->direction == 2 ? 'rtl' : '' }}" name="name" value=""> <p class="em text-danger mb-0" id="errname"></p> </div> </div> </div> @if ($cv->template == 1) <div class="row"> <div class="col-12"> <div class="form-group"> <label for="">{{ $keywords['Which_Column'] ?? __('Which Column') }} **</label> <select name="column" id="" class="form-control"> <option value="" selected disabled> {{ $keywords['Select_a_Column'] ?? __('Select a Column') }}</option> <option value="1"> {{ $keywords['Left_Column_in_CV'] ?? __('Left Column in CV') }}</option> <option value="2"> {{ $keywords['Right_Column_in_CV'] ?? __('Right Column in CV') }} </option> </select> <p id="errcolumn" class="em text-danger mb-0"></p> </div> </div> </div> @endif </form> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">{{ $keywords['Close'] ?? __('Close') }}</button> <button id="" data-form="ajaxForm" type="button" class="submitBtn btn btn-primary">{{ $keywords['Submit'] ?? __('Submit') }}</button> </div> </div> </div> </div> @endsection @section('scripts') <script> $(document).ready(function() { $("#sortable").sortable({ stop: function(event, ui) { $(".request-loader").addClass('show'); let fd = new FormData(); $(".ui-state-default").each(function(index) { fd.append('ids[]', $(this).data('id')); let order = parseInt(index) + 1 fd.append('orders[]', order); }); $.ajax({ url: "{{ route('user.cv.section.order') }}", method: 'POST', data: fd, contentType: false, processData: false, success: function(data) { $(".request-loader").removeClass('show'); bootnotify("Order updated!", "Success", "success"); } }) } }); $("#sortable").disableSelection(); }); </script> @endsection