⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
app.softverse.com.ng
/
app
/
Exports
/
View File Name :
ProposalExport.php
check()) { $data = Proposal::where('created_by' , \Auth::user()->id)->get(); } else{ $data = Proposal::where('customer_id', \Auth::guard('customer')->check())->where('status', '!=', '0')->get(); } if (!empty($data)) { foreach ($data as $k => $Proposal) { $customer = Proposal::customers($Proposal->customer_id); $category = Proposal::ProposalCategory($Proposal->category_id); if($Proposal->status == 0) { $status = 'Draft'; } elseif($Proposal->status == 1) { $status = 'Open'; } elseif($Proposal->status == 2) { $status = 'Accepted'; } elseif($Proposal->status == 3) { $status = 'Declined'; } elseif($Proposal->status == 4) { $status = 'Close'; } unset($Proposal->id,$Proposal->created_by, $Proposal->updated_at, $Proposal->created_at); if(!\Auth::guard('customer')->check()) { $data[$k]["proposal_id"] = \Auth::user()->proposalNumberFormat($Proposal->proposal_id); } else{ $data[$k]["proposal_id"] = Customer::proposalNumberFormat($Proposal->proposal_id); } $data[$k]["customer_id"] = $customer; $data[$k]["category_id"] = $category; $data[$k]["status"] = $status; } } return $data; } public function headings(): array { return [ "Proposal_Id", "Customer_name", "issue Date", "Send Date", "Category Id", "status", "discount_apply", "converted_invoice_id", "is_convert", ]; } }