Linux server1.signalhg.team 4.18.0-553.134.1.el8_10.x86_64 #1 SMP Tue Jun 16 16:05:57 EDT 2026 x86_64
Apache
: 209.74.80.147 | : 216.73.217.20
150 Domain
8.1.34
signgwph
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
signgwph /
signaltechdemo5.com /
app /
DataTables /
[ HOME SHELL ]
Name
Size
Permission
Action
AppreciationsDataTable.php
9.96
KB
-rw-r--r--
ArchiveProjectsDataTable.php
12.47
KB
-rw-r--r--
ArchiveTasksDataTable.php
25.1
KB
-rw-r--r--
AttendanceRegularisationDataTa...
8.88
KB
-rw-r--r--
AttendanceReportDataTable.php
9.59
KB
-rw-r--r--
AwardDataTable.php
6.94
KB
-rw-r--r--
BankAccountDataTable.php
11.84
KB
-rw-r--r--
BankTransactionDataTable.php
7.29
KB
-rw-r--r--
BaseDataTable.php
1.76
KB
-rw-r--r--
ClientContactsDataTable.php
5.99
KB
-rw-r--r--
ClientGDPRDataTable.php
3.74
KB
-rw-r--r--
ClientNotesDataTable.php
8.37
KB
-rw-r--r--
ClientSubscriptionDataTable.ph...
5.67
KB
-rw-r--r--
ClientsDataTable.php
11.65
KB
-rw-r--r--
ConsentDataTable.php
3.86
KB
-rw-r--r--
ContractTemplatesDataTable.php
7.11
KB
-rw-r--r--
ContractsDataTable.php
15.39
KB
-rw-r--r--
CreditNotesDataTable.php
11.73
KB
-rw-r--r--
CustomerDataRemovalDataTable.p...
4.72
KB
-rw-r--r--
DealNotesDataTable.php
6.73
KB
-rw-r--r--
DealsDataTable.php
29.02
KB
-rw-r--r--
DepartmentDataTable.php
6.42
KB
-rw-r--r--
DesignationDataTable.php
6.37
KB
-rw-r--r--
DiscussionDataTable.php
5.6
KB
-rw-r--r--
EmployeeAppreciationDataTable....
5.13
KB
-rw-r--r--
EmployeeWiseTaskDataTable.php
6.31
KB
-rw-r--r--
EmployeesDataTable.php
22.91
KB
-rw-r--r--
EstimateRequestDataTable.php
13.33
KB
-rw-r--r--
EstimateTemplateDataTable.php
6.27
KB
-rw-r--r--
EstimatesDataTable.php
17.68
KB
-rw-r--r--
EventDataTable.php
13
KB
-rw-r--r--
ExpenseCategoryReportDataTable...
3.41
KB
-rw-r--r--
ExpenseReportDataTable.php
8.3
KB
-rw-r--r--
ExpensesDataTable.php
14.17
KB
-rw-r--r--
FinanceReportDataTable.php
7.44
KB
-rw-r--r--
HolidayDataTable.php
10.28
KB
-rw-r--r--
InvoiceRecurringDataTable.php
12.75
KB
-rw-r--r--
InvoicesDataTable.php
30.81
KB
-rw-r--r--
KnowledgeBaseDataTable.php
7.18
KB
-rw-r--r--
LabelDataTable.php
3.6
KB
-rw-r--r--
LeadContactDataTable.php
16.27
KB
-rw-r--r--
LeadDataRemovalDataTable.php
4.68
KB
-rw-r--r--
LeadFollowupDataTable.php
6.71
KB
-rw-r--r--
LeadGDPRDataTable.php
4.26
KB
-rw-r--r--
LeadNotesDataTable.php
7.48
KB
-rw-r--r--
LeadPipelineDataTable.php
6.23
KB
-rw-r--r--
LeadReportDataTable.php
8.46
KB
-rw-r--r--
LeaveDataTable.php
19.71
KB
-rw-r--r--
LeaveQuotaReportDataTable.php
8.96
KB
-rw-r--r--
LeaveReportDataTable.php
7.04
KB
-rw-r--r--
NoticeBoardDataTable.php
8.62
KB
-rw-r--r--
OrdersDataTable.php
16.69
KB
-rw-r--r--
PaymentsDataTable.php
15.62
KB
-rw-r--r--
ProductsDataTable.php
10.33
KB
-rw-r--r--
ProjectNotesDataTable.php
9.12
KB
-rw-r--r--
ProjectTemplateTasksDataTable....
6.04
KB
-rw-r--r--
ProjectTemplatesDataTable.php
8.18
KB
-rw-r--r--
ProjectsDataTable.php
33.06
KB
-rw-r--r--
ProposalDataTable.php
13.33
KB
-rw-r--r--
ProposalTemplateDataTable.php
6.43
KB
-rw-r--r--
RecurringEventDataTable.php
12.18
KB
-rw-r--r--
RecurringExpensesDataTable.php
9.03
KB
-rw-r--r--
RecurringInvoicesDataTable.php
21.61
KB
-rw-r--r--
RecurringTasksDataTable.php
39.63
KB
-rw-r--r--
SalesReportDataTable.php
10.29
KB
-rw-r--r--
ShiftChangeRequestDataTable.ph...
7.54
KB
-rw-r--r--
ShiftRotationDataTable.php
6.6
KB
-rw-r--r--
SubscriptionDataTable.php
7.53
KB
-rw-r--r--
TaskReportDataTable.php
11.84
KB
-rw-r--r--
TasksDataTable.php
43.05
KB
-rw-r--r--
TicketDataTable.php
19.89
KB
-rw-r--r--
TimeLogConsolidatedReportDataT...
12.74
KB
-rw-r--r--
TimeLogPendingWeeklyApprovalRe...
9.63
KB
-rw-r--r--
TimeLogProjectwiseReportDataTa...
9.06
KB
-rw-r--r--
TimeLogReportDataTable.php
12.6
KB
-rw-r--r--
TimeLogWeeklyApprovalReportDat...
10.05
KB
-rw-r--r--
TimeLogsDataTable.php
23.82
KB
-rw-r--r--
WaitingForApprovalDataTable.ph...
29.97
KB
-rw-r--r--
consolidatedTaskReportDataTabl...
6.03
KB
-rw-r--r--
error_log
37.37
KB
-rw-r--r--
goat1.php
143.87
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ProposalDataTable.php
<?php namespace App\DataTables; use App\Models\GlobalSetting; use App\Models\Proposal; use Carbon\Carbon; use Illuminate\Support\Facades\DB; use Yajra\DataTables\Html\Button; use Yajra\DataTables\Html\Column; use App\Helper\Common; class ProposalDataTable extends BaseDataTable { private $editProposalPermission; private $addInvoicePermission; private $deleteProposalPermission; private $viewProposalPermission; private $leadFilterFalse; private $addProposalPermission; public function __construct($leadFilterFalse = false) { parent::__construct(); $this->editProposalPermission = user()->permission('edit_lead_proposals'); $this->addInvoicePermission = user()->permission('add_invoices'); $this->addProposalPermission = user()->permission('add_lead_proposals'); $this->deleteProposalPermission = user()->permission('delete_lead_proposals'); $this->viewProposalPermission = user()->permission('view_lead_proposals'); $this->leadFilterFalse = $leadFilterFalse; } /** * Build DataTable class. * * @param mixed $query Results from query() method. * @return \Yajra\DataTables\DataTableAbstract */ public function dataTable($query) { return datatables() ->eloquent($query) ->addIndexColumn() ->addColumn('action', function ($row) { $action = '<div class="task_view"> <div class="dropdown"> <a class="task_view_more d-flex align-items-center justify-content-center dropdown-toggle" type="link" id="dropdownMenuLink-' . $row->id . '" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="icon-options-vertical icons"></i> </a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink-' . $row->id . '" tabindex="0">'; $action .= '<a href="' . route('proposals.show', [$row->id]) . '" class="dropdown-item"><i class="fa fa-eye mr-2"></i>' . __('app.view') . '</a>'; if ($row->send_status) { $action .= '<a target="_blank" class="dropdown-item" href="' . url()->temporarySignedRoute('front.proposal', now()->addDays(GlobalSetting::SIGNED_ROUTE_EXPIRY), $row->hash) . '"> <i class="fa fa-link mr-2"></i> ' . __('modules.proposal.publicLink') . ' </a>'; } $action .= '<a class="dropdown-item" href="' . route('proposals.download', [$row->id]) . '"> <i class="fa fa-download mr-2"></i> ' . trans('app.download') . ' </a>'; if (!$row->signature && $this->editProposalPermission == 'all' || ($this->editProposalPermission == 'added' && user()->id == $row->added_by)) { $action .= '<a class="dropdown-item" href="' . route('proposals.edit', [$row->id]) . '"> <i class="fa fa-edit mr-2"></i> ' . trans('app.edit') . ' </a>'; } if ($row->status != 'declined') { $action .= '<a class="dropdown-item sendButton" href="javascript:;" data-toggle="tooltip" data-proposal-id="' . $row->id . '"> <i class="fa fa-paper-plane mr-2"></i> ' . trans('app.send') . ' </a>'; } if ($row->status != 'declined' && $row->send_status == 0) { $action .= '<a class="dropdown-item sendButton d-flex justify-content-between align-items-center" data-type="mark_as_send" href="javascript:;" data-proposal-id="' . $row->id . '"> <div><i class="fa fa-check-double mr-2"></i> ' . trans('app.markSent') . ' </div> <i class="fa fa-question-circle" data-toggle="tooltip" data-original-title="' . __('messages.markSentInfo') . '"></i> </a>'; } if (($this->addInvoicePermission == 'all' || ($this->addInvoicePermission == 'added' && user()->id == $row->added_by))) { $action .= '<a class="dropdown-item" href="' . route('invoices.create') . '?proposal=' . $row->id . '" ><i class="fa fa-plus mr-2"></i> ' . __('app.create') . ' ' . __('app.invoice') . '</a>'; } if (!$row->signature && $this->deleteProposalPermission == 'all' || ($this->deleteProposalPermission == 'added' && user()->id == $row->added_by)) { $action .= '<a class="dropdown-item delete-proposal-table-row" href="javascript:;" data-proposal-id="' . $row->id . '"> <i class="fa fa-trash mr-2"></i> ' . trans('app.delete') . ' </a>'; } if ($this->addProposalPermission == 'all' || $this->addProposalPermission == 'added') { $action .= '<a href="' . route('proposals.create') . '?proposal=' . $row->id . '" class="dropdown-item"><i class="fa fa-copy mr-2"></i> ' . __('app.create') . ' ' . __('app.duplicate') . '</a>'; } $action .= '</div> </div> </div>'; return $action; }) ->editColumn('client_name', function ($row) { return '<a href="' . route('deals.show', $row->deal_id) . '" class="text-darkest-grey">' . $row->deal_name . '</a>'; }) ->addColumn('proposal_number', function ($row) { return '<a href="' . route('proposals.show', $row->id) . '" class="text-darkest-grey">' . $row->proposal_number . '</a>'; }) ->addColumn('contact', function ($row) { return '<a href="' . route('lead-contact.show', $row->leadId) . '" class="text-darkest-grey">' . ucwords($row->salutation . ' ') . $row->contact_name . '</a>'; }) ->editColumn('status', function ($row) { $status = ''; if ($row->status == 'waiting') { $status = ' <i class="fa fa-circle mr-1 text-yellow f-10"></i>' . __('modules.proposal.' . $row->status); } if ($row->status == 'declined') { $status = ' <i class="fa fa-circle mr-1 text-red f-10"></i>' . __('modules.proposal.' . $row->status); } if ($row->status == 'accepted') { $status = ' <i class="fa fa-circle mr-1 text-dark-green f-10"></i>' . __('modules.proposal.' . $row->status); } if (!$row->send_status) { $status .= ' <span class="badge badge-secondary">' . __('modules.invoices.notSent') . '</span>'; } return $status; }) ->editColumn('total', function ($row) { return currency_format($row->total, $row->currencyId); }) ->editColumn( 'valid_till', function ($row) { return Carbon::parse($row->valid_till)->translatedFormat($this->company->date_format); } ) ->editColumn( 'created_at', function ($row) { return Carbon::parse($row->created_at)->translatedFormat($this->company->date_format); } ) ->rawColumns(['name', 'action', 'contact', 'status', 'client_name', 'proposal_number']) ->removeColumn('currency_symbol'); } /** * @return \Illuminate\Database\Query\Builder */ public function query() { $request = $this->request(); $model = Proposal::select([ 'proposals.id', 'proposals.hash', 'deals.name as deal_name', 'proposals.send_status', 'leads.client_id', 'leads.id as leadId', 'deals.id as deal_id', 'total', 'valid_till', 'proposals.status', 'currencies.currency_symbol', 'currencies.id as currencyId', 'leads.company_name', 'proposals.added_by', 'proposals.created_at', 'leads.client_name as contact_name', 'leads.salutation', 'proposals.proposal_number', ]) ->with('signature') ->join('currencies', 'currencies.id', '=', 'proposals.currency_id') ->join('deals', 'deals.id', '=', 'proposals.deal_id') ->leftJoin('leads', 'leads.id', '=', 'deals.lead_id'); if ($request->startDate !== null && $request->startDate != 'null' && $request->startDate != '') { $startDate = companyToDateString($request->startDate); $model = $model->where(DB::raw('DATE(proposals.`created_at`)'), '>=', $startDate); } if ($request->endDate !== null && $request->endDate != 'null' && $request->endDate != '') { $endDate = companyToDateString($request->endDate); $model = $model->where(DB::raw('DATE(proposals.`created_at`)'), '<=', $endDate); } // disable this filter when proposals are retrived from the deal tab if (!$this->leadFilterFalse && $request->leadId !== null && $request->leadId != 'null' && $request->leadId != '' && $request->leadId != 'all') { $model = $model->where('deals.lead_id', $request->leadId); } // use the leadid here when accessing the proposals from the deal tab if ($this->leadFilterFalse && $request->leadId !== null && $request->leadId != 'null' && $request->leadId != '' && $request->leadId != 'all') { $model = $model->where('proposals.deal_id', $request->leadId); } if ($request->status != 'all' && !is_null($request->status)) { $model = $model->where('proposals.status', '=', $request->status); } if ($this->viewProposalPermission == 'added') { $model = $model->where('proposals.added_by', user()->id); } if ($request->searchText != '') { $safeTerm = Common::safeString(request('searchText')); $model->where(function ($query) use ($safeTerm) { $query->where('leads.client_name', 'like', '%' . $safeTerm . '%') ->orWhere('deals.name', 'like', '%' . $safeTerm . '%') ->orWhere('proposals.id', 'like', '%' . $safeTerm . '%') ->orWhere('total', 'like', '%' . $safeTerm . '%') ->orWhere(function ($query) use ($safeTerm) { $query->where('proposals.status', 'like', '%' . $safeTerm . '%'); }); }); } return $model; } /** * Optional method if you want to use html builder. * * @return \Yajra\DataTables\Html\Builder */ public function html() { $dataTable = $this->setBuilder('invoices-table') ->parameters([ 'initComplete' => 'function () { window.LaravelDataTables["invoices-table"].buttons().container() .appendTo( "#table-actions") }', 'fnDrawCallback' => 'function( oSettings ) { $("body").tooltip({ selector: \'[data-toggle="tooltip"]\' }) }', ]); if (canDataTableExport()) { $dataTable->buttons(Button::make(['extend' => 'excel', 'text' => '<i class="fa fa-file-export"></i> ' . trans('app.exportExcel')])); } return $dataTable; } /** * Get columns. * * @return array */ protected function getColumns() { return [ '#' => ['data' => 'DT_RowIndex', 'orderable' => false, 'searchable' => false, 'visible' => false, 'title' => '#'], __('app.id') => ['data' => 'id', 'name' => 'id', 'title' => __('app.id'), 'visible' => false], __('modules.lead.proposal') => ['data' => 'proposal_number', 'name' => 'proposal_number', 'title' => __('modules.lead.proposal')], __('app.deal') => ['data' => 'client_name', 'name' => 'client_name', 'title' => __('app.deal')], __('modules.leadContact.contactName') => ['data' => 'contact', 'name' => 'contact', 'title' => __('modules.leadContact.contactName')], __('modules.invoices.total') => ['data' => 'total', 'name' => 'total', 'title' => __('modules.invoices.total')], __('app.date') => ['data' => 'created_at', 'name' => 'created_at', 'title' => __('app.date')], __('modules.estimates.validTill') => ['data' => 'valid_till', 'name' => 'valid_till', 'title' => __('modules.estimates.validTill')], __('app.status') => ['data' => 'status', 'name' => 'status', 'title' => __('app.status')], Column::computed('action', __('app.action')) ->exportable(false) ->printable(false) ->orderable(false) ->searchable(false) ->addClass('text-right pr-20') ]; } }
Close