⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
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
/
storage
/
framework
/
views
/
View File Name :
a164a65e1a9bc56597656b6b4b9ab26400dd078d.php
<?php $selLang = \App\Models\User\Language::where([['code', request()->input('language')], ['user_id', \Illuminate\Support\Facades\Auth::guard('web')->user()->id]])->first(); $userDefaultLang = \App\Models\User\Language::where([['user_id', \Illuminate\Support\Facades\Auth::guard('web')->user()->id], ['is_default', 1]])->first(); $userLanguages = \App\Models\User\Language::where('user_id', \Illuminate\Support\Facades\Auth::guard('web')->user()->id)->get(); ?> <?php if(!empty($selLang) && $selLang->rtl == 1): ?> <?php $__env->startSection('styles'); ?> <style> form:not(.modal-form) input, form:not(.modal-form) textarea, form:not(.modal-form) select, select[name='userLanguage'] { direction: rtl; } form:not(.modal-form) .note-editor.note-frame .note-editing-area .note-editable { direction: rtl; text-align: right; } </style> <?php $__env->stopSection(); ?> <?php endif; ?> <?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title"><?php echo e($keywords['All_Appointments'] ?? __('All Appointments')); ?></h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="<?php echo e(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="#"><?php echo e($keywords['All_Appointments'] ?? __('All Appointments')); ?></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-2"> <div class="card-title d-inline-block"> <?php echo e($keywords['All_Appointments'] ?? __('All Appointments')); ?></div> </div> <div class="col-lg-2"> <input type="text" id="_slno" class="form-control" value="<?php echo e(!empty(request()->input('sl_no')) ? request()->input('sl_no') : ''); ?>" placeholder="<?php echo e($keywords['search_sl_no'] ?? 'Search SL.No.'); ?>"> </div> <div class="col-lg-2"> <input type="text" id="_date" class="form-control datepicker" value="<?php echo e(!empty(request()->input('date')) ? request()->input('date') : ''); ?>" placeholder="<?php echo e($keywords['Search_Date'] ?? 'Search Date'); ?>"> </div> <div class="col-lg-2"> <input type="text" id="_tID" class="form-control" value="<?php echo e(!empty(request()->input('t_id')) ? request()->input('t_id') : ''); ?>" placeholder="<?php echo e($keywords['Search_transaction_id'] ?? 'Search Transaction ID'); ?>"> </div> <div class="col-lg-2"> <input type="text" id="_name" class="form-control" value="<?php echo e(!empty(request()->input('name')) ? request()->input('name') : ''); ?>" placeholder="<?php echo e($keywords['Search_Name'] ?? 'Search Name'); ?>"> </div> <div class="col-lg-2 text-right"> <button id="resetBtn" onclick="document.getElementById('resetSerialForm').submit(); document.getElementById('resetBtnTxt').innerHTML='Resetting ';" class="btn btn-info btn-sm float-right"> <i class="fas fa-retweet"></i> <span id="resetBtnTxt"> <?php echo e($keywords['reset'] ?? __('Reset')); ?> </span> <?php echo e($keywords['serial'] ?? __('Serial')); ?> <form method="get" id="resetSerialForm" action="<?php echo e(route('user.reset-serial-number')); ?>"> </form> </button> <button class="btn btn-danger float-right btn-sm mr-2 d-none bulk-delete" data-href="<?php echo e(route('user.bulk-delete-appointment')); ?>"> <i class="flaticon-interface-5"></i> <?php echo e($keywords['Delete'] ?? __('Delete')); ?> </button> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> <?php if($errors->any()): ?> <div class="alert alert-danger"> <ul> <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li><?php echo e($error); ?></li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </ul> </div> <?php endif; ?> <?php if(count($appointments) == 0): ?> <h3 class="text-center"> <?php echo e($keywords['No_Appointment_Found'] ?? __('No Appointment Found')); ?> !</h3> <?php else: ?> <div class="table-responsive"> <table class="table table-striped mt-3"> <thead> <tr> <th scope="col"> <input type="checkbox" class="bulk-check" data-val="all"> </th> <th scope="col"><?php echo e($keywords['SL_No'] ?? __('SL. No')); ?> </th> <th scope="col"> <?php echo e($keywords['Transaction_Id'] ?? __('Transaction ID')); ?> </th> <th scope="col"><?php echo e($keywords['Booking_Date'] ?? __('Booking date')); ?> </th> <th scope="col"><?php echo e($keywords['Time_Slots'] ?? __('Time slots')); ?> </th> <th scope="col"><?php echo e($keywords['Category'] ?? __('Category')); ?> </th> <th scope="col"> <?php echo e($keywords['Name'] ?? __('Name')); ?> </th> <th scope="col"> <?php echo e($keywords['Status'] ?? __('Status')); ?> </th> <th scope="col"> <?php echo e($keywords['Payment_status'] ?? __('Payment status')); ?> </th> <th scope="col"><?php echo e($keywords['Actions'] ?? __('Actions')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $appointments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $appointment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <input type="checkbox" class="bulk-check" data-val="<?php echo e($appointment->id); ?>"> </td> <td><?php echo e($appointment->serial_number); ?></td> <td><?php echo e($appointment->transaction_id); ?></td> <td><?php echo e($appointment->date); ?></td> <td><?php echo e($appointment->time); ?></td> <td><?php echo e($appointment->category->name ?? '-'); ?></td> <td><?php echo e($appointment->name); ?></td> <td> <form id="appointmentStatus<?php echo e($appointment->id); ?>" class="d-inline-block" action="<?php echo e(route('user.change.appointment.status')); ?>" method="post"> <?php echo csrf_field(); ?> <select class="form-control form-control-sm <?php echo e($appointment->status == 2 ? 'bg-success' : ($appointment->status == 3 ? 'bg-primary' : ($appointment->status == 4 ? 'bg-danger' : 'bg-info'))); ?>" name="status" onchange="document.getElementById('appointmentStatus<?php echo e($appointment->id); ?>').submit();"> <option value="1" <?php echo e($appointment->status == 1 ? 'selected' : ''); ?>> <?php echo e($keywords['Pending'] ?? __('Pending')); ?></option> <option value="2" <?php echo e($appointment->status == 2 ? 'selected' : ''); ?>> <?php echo e($keywords['Approved'] ?? __('Approved')); ?> </option> <option value="3" <?php echo e($appointment->status == 3 ? 'selected' : ''); ?>> <?php echo e($keywords['Completed'] ?? __('Completed')); ?> </option> <option value="4" <?php echo e($appointment->status == 4 ? 'selected' : ''); ?>> <?php echo e($keywords['Rejected'] ?? __('Rejected')); ?> </option> </select> <input type="hidden" name="appointment_id" value="<?php echo e($appointment->id); ?>"> </form> </td> <td> <form id="appointmentPaymentStatus<?php echo e($appointment->id); ?>" class="d-inline-block" action="<?php echo e(route('user.change.appointment.payment')); ?>" method="post"> <?php echo csrf_field(); ?> <select class="form-control form-control-sm <?php echo e($appointment->payment_status == 2 ? 'bg-success' : ($appointment->payment_status == 3 ? 'bg-primary' : ($appointment->payment_status == 4 ? 'bg-danger' : 'bg-info'))); ?>" name="payment_status" onchange="document.getElementById('appointmentPaymentStatus<?php echo e($appointment->id); ?>').submit();"> <option value="1" <?php echo e($appointment->payment_status == 1 ? 'selected' : ''); ?>> <?php echo e($keywords['Pending'] ?? __('Pending')); ?> </option> <option value="2" <?php echo e($appointment->payment_status == 2 ? 'selected' : ''); ?>> <?php echo e($keywords['Paid'] ?? __('Paid')); ?> </option> <option value="3" <?php echo e($appointment->payment_status == 3 ? 'selected' : ''); ?>> <?php echo e($keywords['Advanced'] ?? __('Advanced')); ?> </option> <?php if($appointment->transaction_details == 'offline'): ?> <option value="4" <?php echo e($appointment->payment_status == 4 ? 'selected' : ''); ?>> <?php echo e($keywords['Rejected'] ?? __('Rejected')); ?> </option> <?php endif; ?> </select> <input type="hidden" name="appointment_id" value="<?php echo e($appointment->id); ?>"> </form> </td> <td> <a href="<?php echo e(route('user.appointment.view', ['appointment' => $appointment->id]) . '?language=' . request('language')); ?>" type="submit" class="btn btn-info btn-sm "> <span class="btn-label"> <i class="fas fa-eye"></i> </span> <?php echo e($keywords['Details'] ?? __('Details')); ?> </a> <a href="<?php echo e(route('user.appointment.edit', ['appointment' => $appointment->id]) . '?language=' . request('language')); ?>" type="submit" class="btn btn-primary btn-sm "> <span class="btn-label"> <i class="fas fa-edit"></i> </span> <?php echo e($keywords['Edit'] ?? __('Edit')); ?> </a> <form class="deleteform d-inline-block" action="<?php echo e(route('user.appointment.delete', ['appointment' => $appointment->id])); ?>" method="post"> <?php echo csrf_field(); ?> <button type="submit" class="btn btn-danger btn-sm deletebtn"> <span class="btn-label"> <i class="fas fa-trash"></i> </span> <?php echo e($keywords['Delete'] ?? __('Delete')); ?> </button> </form> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php endif; ?> </div> </div> </div> <div class="card-footer"> <nav class="pagination-nav pull-right <?php echo e($appointments->count() > 15 ? 'mb-4' : ''); ?>"> <?php echo e($appointments->appends(['language' => request()->input('language')])->links()); ?> </nav> </div> </div> </div> </div> <form id="searchForm" class="d-none" action="<?php echo e($route . '?language=' . request()->input('language')); ?>" method="get"> <input type="hidden" id="sl_no" name="sl_no" value="<?php echo e(!empty(request()->input('sl_no')) ? request()->input('sl_no') : ''); ?>"> <input type="hidden" id="date" name="date" value="<?php echo e(!empty(request()->input('date')) ? request()->input('date') : ''); ?>"> <input type="hidden" id="t_id" name="t_id" value="<?php echo e(!empty(request()->input('t_id')) ? request()->input('t_id') : ''); ?>"> <input type="hidden" id="name" name="name" value="<?php echo e(!empty(request()->input('name')) ? request()->input('name') : ''); ?>"> <button id="searchButton" type="submit"></button> </form> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> "use strict"; let sl_no = ''; let date = ''; let t_id = ''; let name = ''; $(document).on('change', '#_slno', function() { sl_no = $(this).val(); $('#sl_no').val(sl_no); $('#searchButton').click(); }) $(document).on('change', '#_date', function() { date = $(this).val(); $('#date').val(date); $('#searchButton').click(); }) $(document).on('change', '#_tID', function() { t_id = $(this).val(); $('#t_id').val(t_id); $('#searchButton').click(); }) $(document).on('change', '#_name', function() { name = $(this).val(); $('#name').val(name); $('#searchButton').click(); }) </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('user.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/public_html/resources/views/user/appointment/appointments.blade.php ENDPATH**/ ?>