ヤミRoot VoidGate
User / IP
:
216.73.217.162
Host / Server
:
15.235.182.215 / pollibazaar.com
System
:
Linux asia.cbnex.com 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
pollibazaar
/
public_html
/
Modules
/
TaxModule
/
app
/
Exports
/
Viewing: VendorWiseTaxExport.php
<?php namespace Modules\TaxModule\app\Exports; use Illuminate\Contracts\View\View; use Maatwebsite\Excel\Concerns\Exportable; use Maatwebsite\Excel\Concerns\FromView; use Maatwebsite\Excel\Events\AfterSheet; use Maatwebsite\Excel\Concerns\WithEvents; use Maatwebsite\Excel\Concerns\WithStyles; use Maatwebsite\Excel\Concerns\WithHeadings; use Maatwebsite\Excel\Concerns\ShouldAutoSize; use Maatwebsite\Excel\Concerns\WithColumnWidths; use Modules\TaxModule\app\Traits\VatTaxConfiguration; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; use PhpOffice\PhpSpreadsheet\Style\Border; use PhpOffice\PhpSpreadsheet\Style\Alignment; class VendorWiseTaxExport implements FromView, ShouldAutoSize, WithStyles, WithColumnWidths, WithHeadings, WithEvents { use VatTaxConfiguration; use Exportable; protected $data; public function __construct($data) { $this->data = $data; } public function view(): View { return view('taxmodule::6valley.file-exports.vendor-wise-tax-report', [ 'data' => $this->data, ]); } public function columnWidths(): array { return [ // 'C' => 45, ]; } public function styles(Worksheet $sheet) { $sheet->getStyle('A2:E2')->getFont()->setBold(true); $sheet->getStyle('A3:E3')->getFill()->applyFromArray([ 'fillType' => 'solid', 'rotation' => 0, 'color' => ['rgb' => '9F9F9F'], ]); $sheet->setShowGridlines(false); $styleArray = [ 'borders' => [ 'bottom' => ['borderStyle' => 'hair', 'color' => ['argb' => 'FFFF0000']], 'top' => ['borderStyle' => 'hair', 'color' => ['argb' => 'FFFF0000']], 'right' => ['borderStyle' => 'hair', 'color' => ['argb' => 'FF00FF00']], 'left' => ['borderStyle' => 'hair', 'color' => ['argb' => 'FF00FF00']], ], 'fillType' => 'solid', 'rotation' => 0, ]; $sheet->getStyle('A1:C1')->applyFromArray($styleArray); return [ // Define the style for cells with data 'A1:E' . ($this->data['shopTaxList']->count() + 3) => [ 'borders' => [ 'allBorders' => [ 'borderStyle' => Border::BORDER_THIN, 'color' => ['argb' => '000000'], // Specify the color of the border (optional) ], ], ], ]; } public function registerEvents(): array { return [ AfterSheet::class => function (AfterSheet $event) { $event->sheet->getStyle('A1:E1') // Adjust the range as per your needs ->getAlignment() ->setHorizontal(Alignment::HORIZONTAL_CENTER) ->setVertical(Alignment::VERTICAL_CENTER); $event->sheet->getStyle('A2:B2') ->getAlignment() ->setHorizontal(Alignment::HORIZONTAL_CENTER) ->setVertical(Alignment::VERTICAL_CENTER); $event->sheet->getStyle('A3:C3') ->getAlignment() ->setHorizontal(Alignment::HORIZONTAL_CENTER) ->setVertical(Alignment::VERTICAL_CENTER); $event->sheet->getStyle('A4:C4') ->getAlignment() ->setHorizontal(Alignment::HORIZONTAL_CENTER) ->setVertical(Alignment::VERTICAL_CENTER); $event->sheet->getStyle('A3:E' . ($this->data['shopTaxList']->count() + 3)) ->getAlignment() ->setHorizontal(Alignment::HORIZONTAL_CENTER) ->setVertical(Alignment::VERTICAL_CENTER); $event->sheet->getStyle('C2:E2') ->getAlignment() ->setHorizontal(Alignment::HORIZONTAL_LEFT) ->setVertical(Alignment::VERTICAL_CENTER); $event->sheet->mergeCells('A1:E1'); $event->sheet->mergeCells('A2:B2'); $event->sheet->mergeCells('C2:E2'); $event->sheet->getDefaultRowDimension()->setRowHeight(30); $event->sheet->getRowDimension(1)->setRowHeight(50); $event->sheet->getRowDimension(2)->setRowHeight(100); }, ]; } public function headings(): array { return [ '1' ]; } }
Coded With 💗 by
0x6ick