[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: index.blade.php
@extends('layouts.admin') @section('page-title') {{ __('Project Report') }} @endsection @section('links') @if (\Auth::guard('client')->check()) <li class="breadcrumb-item"><a href="{{ route('client.home') }}">{{ __('Home') }}</a></li> @else <li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Home') }}</a></li> @endif <li class="breadcrumb-item"> {{ __('Project Report') }}</li> @endsection @section('action-button') @auth('web') <a href="#" class="btn btn-sm btn-primary filter" data-toggle="tooltip" title="{{ __('Filter') }}"> <i class="ti ti-filter"></i> </a> @endauth @endsection @php $client_keyword = Auth::user()->getGuard() == 'client' ? 'client.' : ''; @endphp @section('content') {{-- <div class="col-lg-12 projectreportdata p-0"> </div> --}} <div class="row row-gap-2 mb-4"> <div class="row display-none align-items-center" id="show_filter"> @if ($currentWorkspace->permission == 'Owner' || Auth::user()->getGuard() == 'client') <div class="col-md-2 col-sm-6"> <select class="form-select" name="all_users" id="all_users"> <option value="" class="px-4">{{ __('All Users') }}</option> @foreach ($users as $user) <option value="{{ $user->id }}">{{ $user->name }}</option> @endforeach </select> </div> @endif <div class="col-md-2 col-sm-6"> <select class="form-select" name="status" id="status"> <option value="" class="px-4">{{ __('All Status') }}</option> <option value="Ongoing">{{ __('Ongoing') }}</option> <option value="Finished">{{ __('Finished') }}</option> <option value="OnHold">{{ __('OnHold') }}</option> </select> </div> <div class="form-group col-md-3 col-sm-6 mb-0"> <div class="input-group date "> <input class="form-control datepicker5" type="text" id="start_date" name="start_date" value="" autocomplete="off" required="required" placeholder="{{ __('Start Date') }}"> <span class="input-group-text"> <i class="feather icon-calendar"></i> </span> </div> </div> <div class="form-group col-md-3 col-sm-6 mb-0"> <div class="input-group date "> <input class="form-control datepicker4" type="text" id="end_date" name="end_date" value="" autocomplete="off" required="required" placeholder="{{ __('End Date') }}"> <span class="input-group-text"> <i class="feather icon-calendar"></i> </span> </div> </div> <div class="col-md-2 col-sm-6"> <a href="#" class="btn btn-primary btn-sm btn-filter mb-0 me-1" data-toggle="tooltip" title="{{ __('Apply') }}"> <i class="ti ti-search"></i> </a> <a href="{{ route('project_report.index', $currentWorkspace->slug) }}" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" title="" data-bs-original-title="Reset"> <span class="btn-inner--icon"><i class="ti ti-refresh"></i></span> </a> </div> </div> <div class="col-xl-12"> <div class="card"> <div class="card-body"> <div class="table-responsive p-4"> <table class="table selection-datatable px-4 mt-2" id="selection-datatable1"> <thead> <tr> <th> {{ __('#') }}</th> <th> {{ __('Project Name') }}</th> <th> {{ __('Start Date') }}</th> <th> {{ __('Due Date') }}</th> <th> {{ __('Project Member') }}</th> <th> {{ __('Progress') }}</th> <th>{{ __('Project Status') }}</th> <th>{{ __('Action') }}</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> </div> @endsection @push('css-page') <link rel="stylesheet" href="{{ asset('assets/custom/css/datatables.min.css') }}"> <style> table.dataTable.no-footer { border-bottom: none !important; } .display-none { display: none !important; } </style> @endpush @push('scripts') <script> (function() { const d_week = new Datepicker(document.querySelector('.datepicker4'), { buttonClass: 'btn', todayBtn: true, clearBtn: true, format: 'yyyy-mm-dd', }); })(); </script> <script> (function() { const d_week = new Datepicker(document.querySelector('.datepicker5'), { buttonClass: 'btn', todayBtn: true, clearBtn: true, format: 'yyyy-mm-dd', }); })(); </script> <script src="{{ asset('assets/custom/js/jquery.dataTables.min.js') }}"></script> {{-- <script> const dataTable = new simpleDatatables.DataTable("#selection-datatable1"); </script> --}} <script type="text/javascript"> $(".filter").click(function() { $("#show_filter").toggleClass('display-none'); }); </script> <script> $(document).ready(function() { var table = $("#selection-datatable1").DataTable({ order: [], select: { style: "multi" }, "language": dataTableLang, drawCallback: function() { $(".dataTables_paginate > .pagination").addClass("pagination-rounded") } }); $(document).on("click", ".btn-filter", function() { getData(); }); function getData() { table.clear().draw(); $("#selection-datatable1 tbody tr").html( '<td colspan="11" class="text-center"> {{ __('Loading ...') }}</td>'); var data = { status: $("#status").val(), start_date: $("#start_date").val(), end_date: $("#end_date").val(), all_users: $("#all_users").val(), }; $.ajax({ url: '{{ route($client_keyword . 'projects.ajax', [$currentWorkspace->slug]) }}', type: 'POST', data: data, success: function(data) { table.rows.add(data.data).draw(true); loadConfirm(); }, error: function(data) { show_toastr('Info', data.error, 'error') } }) } getData(); }); </script> @endpush
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002