<?php
//Obfuscated by YAK Pro - Php Obfuscator 2.0.13 at 2025-06-18 09:19:15
 namespace App\Exports; use App\PositionHistory; use Maatwebsite\Excel\Concerns\FromCollection; use Maatwebsite\Excel\Concerns\WithHeadings; use Maatwebsite\Excel\Concerns\WithMapping; use Maatwebsite\Excel\Concerns\ShouldAutoSize; use Maatwebsite\Excel\Concerns\WithTitle; use Maatwebsite\Excel\Concerns\WithStyles; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; use Maatwebsite\Excel\Concerns\WithEvents; use Maatwebsite\Excel\Events\AfterSheet; use PhpOffice\PhpSpreadsheet\Style\Alignment; use PhpOffice\PhpSpreadsheet\Style\Border; class PositionHistoriesExport implements FromCollection, WithHeadings, WithMapping, ShouldAutoSize, WithTitle, WithStyles, WithEvents { public function title() : string { return "\120\157\163\x69\x74\x69\x6f\156\x48\151\163\x74\x6f\162\x69\x65\163"; } public function collection() { return PositionHistory::with(["\x65\155\160\x6c\x6f\x79\x65\x65", "\160\x6f\163\x69\x74\151\x6f\x6e"])->get(); } public function headings() : array { return ["\347\244\xbe\xe5\x93\xa1\xe7\225\252\xe5\x8f\xb7", "\351\x96\x8b\xe5\247\x8b\346\227\245", "\xe7\xb5\x82\344\272\x86\346\227\245", "\345\xbd\xb9\350\201\xb7"]; } public function map($dQug_) : array { return [$dQug_->employee ? $dQug_->employee->employee_code : "\x4e\57\101", $this->dateFormat($dQug_->from_date, "\x59\x2f\155\x2f\144"), $this->dateFormat($dQug_->to_date, "\x59\57\x6d\57\144"), $dQug_->position ? $dQug_->position->name : '']; } public function styles(Worksheet $rj2XN) { return [1 => ["\141\154\x69\x67\156\x6d\x65\x6e\164" => ["\x68\157\x72\151\x7a\157\156\164\x61\x6c" => Alignment::HORIZONTAL_CENTER, "\166\145\162\x74\151\x63\141\x6c" => Alignment::VERTICAL_CENTER]], "\x41\x31\72\104" . $rj2XN->getHighestRow() => ["\142\157\x72\x64\145\x72\x73" => ["\x61\154\154\x42\x6f\x72\144\x65\162\x73" => ["\142\x6f\x72\144\x65\x72\x53\x74\x79\x6c\x65" => Border::BORDER_THIN]]], "\101\62\x3a\101" . $rj2XN->getHighestRow() => ["\x61\154\151\147\156\x6d\x65\x6e\x74" => ["\150\157\162\x69\x7a\x6f\156\164\141\x6c" => Alignment::HORIZONTAL_LEFT, "\166\x65\162\x74\x69\x63\x61\x6c" => Alignment::VERTICAL_CENTER]], "\x42\61\72\102" . $rj2XN->getHighestRow() => ["\141\154\151\x67\x6e\x6d\145\x6e\x74" => ["\150\x6f\162\x69\172\x6f\156\x74\x61\154" => Alignment::HORIZONTAL_CENTER, "\166\145\162\x74\x69\143\x61\154" => Alignment::VERTICAL_CENTER]], "\x43\x31\72\103" . $rj2XN->getHighestRow() => ["\x61\154\151\x67\x6e\155\145\156\x74" => ["\150\x6f\162\x69\172\x6f\x6e\164\x61\154" => Alignment::HORIZONTAL_CENTER, "\166\145\162\x74\151\143\x61\154" => Alignment::VERTICAL_CENTER]]]; } public function registerEvents() : array { return [AfterSheet::class => function (AfterSheet $wVL2Y) { $wVL2Y->sheet->freezePane("\101\62"); }]; } private function dateFormat($wADGV, $gd_f9 = "\x6e\x2f\152\57\131") { if (!empty($wADGV)) { goto Ykk_y; } return ''; Ykk_y: $uYxpk = is_string($wADGV) ? $wADGV : $wADGV->format("\131\55\155\55\144"); return date($gd_f9, strtotime($uYxpk)); } }