CasperSecurity

Current Path : /var/www/orientalss.com/resources/views/livewire/report/
Upload File :
Current File : /var/www/orientalss.com/resources/views/livewire/report/salary-report-livewire.blade.php

<div class="row">
    <div class="card z-auto p-[25px]" style="min-height: 690px;">
        <div class="card-body">
            <div class="p-[2.125rem]">
                <div class="row flex justify-start">
                    <div class="w-1/4 px-2 py-2">
                        <label class="form-label">Select Month and Year</label>
                        <input wire:model="monthYear" type="month"
                               class="form-select w-full rounded-md style-1 py-1.5 px-3 bg-transparent text-[13px] font-normal outline-none relative focus:ring-0 border border-dark text-dark h-[2.813rem] leading-[1.813rem]"
                               autocomplete="off" />
                    </div>
                    <div class="w-1/4 px-2 py-2">
                        <label class="form-label">Filter By</label>
                        <select wire:model="filter_by" id="filter_by" class="form-control relative text-[13px] text-dark h-[2.813rem] border border-dark block rounded-md py-1.5 px-3 duration-500 dark:hover:border-b-color outline-none w-full">
                            <option value="">Select Employee</option>
                                <option value='name'>Name</option>
                                <option value='designation_name'>Designation Name</option>
                        </select>
                    </div>
                    <div class="w-1/4 px-2 py-2">
                        <label class="form-label">     </label>
                        <input name="search" wire:model="search" type="text"
                               class="form-control relative text-[13px] text-dark h-[2.813rem] border border-dark block rounded-md py-1.5 px-3 duration-500 dark:hover:border-b-color outline-none w-full"
                               id="search" placeholder="Search ..." autocomplete="off"/>
                    </div>
                </div>
            </div>

                <div>
                    @if(!empty($datatable))
                        <div class="overflow-x-auto table-scroll">
                            <div class="card-body table-responsive pt-0" id="Salary">
                                <table id="dept_datatable" class="display table w-full">
                                    <tr>
                                        @if($org)
                                            <td colspan="6">
                                                <center>
                                                    <b style="font-size:25px; font-weight:bold; vertical-align:middle;">{{$org['organisation_name']}}</b>
                                                </center>
                                                <br>
                                                <center>
                                                    <b style="font-size:18px; font-weight:bold; vertical-align:middle;">Salary Register</b>
                                                </center>
                                            </td>
                                        @endif
                                    </tr>
                                    <tr>
                                        <td colspan="6" style="font-size:18px; border-right:1px solid #fff; border-left:1px solid #fff; border-bottom:1px solid #fff; border-top:1px solid #fff; font-weight:bold;">
                                            <table style="border: 1px solid #72839e; width:100%;">
                                                <thead>
                                                <tr>
                                                    <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-weight-bold text-center">Employee No</th>
                                                    <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-weight-bold text-center">Name</th>
                                                    <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-weight-bold text-center">Designation</th>
                                                    <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-weight-bold text-center">Gross Earning</th>
                                                    <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-weight-bold text-center">Total Deduction</th>
                                                    <th class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-weight-bold text-center">Net Pay</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                @foreach($datatable as $data)
                                                    <tr class="bg-transparent">
                                                        <td class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">
                                                            {{ $data['employee_id'] }}
                                                        </td>
                                                        <td class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">
                                                            {{ $data['name'] }}
                                                        </td>
                                                        <td class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">
                                                            {{ $data['designation_name'] }}
                                                        </td>
                                                        <td class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">
                                                            {{ $data['Total Earnings'] }}
                                                        </td>
                                                        <td class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">
                                                            {{ $data['Total Deductions'] }}
                                                        </td>
                                                        <td class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-medium text-center">
                                                            {{ $data['in_hand'] }}
                                                        </td>
                                                    </tr>
                                                @endforeach
                                                </tbody>
                                                <tfoot>
                                                    <tr>
                                                        <td class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-weight-bold text-right" colspan="3">Grand Totals:</td>
                                                        <td class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-weight-bold text-center">{{ $grandTotals['Total Earnings'] }}</td>
                                                        <td class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-weight-bold text-center">{{ $grandTotals['Total Deductions'] }}</td>
                                                        <td class="text-black py-2 px-[0.9375rem] border-2 border-solid border-[#E6E6E6] dark:border-[#444444] capitalize whitespace-nowrap text-xs font-weight-bold text-center">{{ $grandTotals['Net Pay'] }}</td>
                                                    </tr>
                                                </tfoot>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <div class="flex justify-end mt-2">
                            <div class="w-1/8 px-2 py-2 justify-end">
                                <select name="perPage" wire:model="perPage"
                                        class="form-select w-full rounded-md style-1 py-1.5 px-3 bg-transparent text-[13px] font-normal outline-none relative focus:ring-0 border border-dark text-dark h-[2.813rem] leading-[1.813rem]">
                                    <option value="10">10</option>
                                    <option value="25">25</option>
                                    <option value="50">50</option>
                                    <option value="100">100</option>
                                    <option value="500">500</option>
                                </select>
                            </div>
                        </div>
                        <div class="flex justify-center mt-4">
                            <button class="btn xl:py-[0.719rem] mr-4 py-2.5 xl:px-[1.563rem] px-4 duration-300 xl:text-[15px] text-[13px] font-medium rounded text-danger bg-danger-light leading-5 inline-block border border-danger-light btn-danger light hover:text-white hover:bg-danger offcanvas-close" wire:click="closemodalclick">Cancel</button>
                            <button class="btn btn-primary xl:py-[0.719rem] py-2.5 xl:px-[1.563rem] px-4 duration-300 xl:text-[15px] text-[13px] font-medium rounded text-white bg-primary leading-5 inline-block border border-primary hover:bg-hover-primary" onclick="downloadclick('Salary')"><span class="indicator-label">Download</span></button>
                        </div>
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>
@section('externaljs')
    <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.min.js"></script>
    <script>
        function downloadclick(divid) {
            var element = document.getElementById(divid);
            console.log(element);
            var Salary =  'Salary_register.pdf';
            var opt = {
                margin: [0.5,0.5,0.5,0.5],
                filename:     Salary,
                image:        { type: 'jpeg', quality: 100 },
                html2canvas:  { scale: 1 },
                font_size: '12px;',
                jsPDF:        { unit: 'in', format: 'letter', orientation: 'landscape' },
                style: '@media print { @page { size: landscape; } }',
            };
            html2pdf().from(element).set(opt).toPdf().get('pdf').then(function(pdf) {
                var totalPages = pdf.internal.getNumberOfPages();
                if (totalPages > 10) {
                    pdf.deletePage(2); // Remove additional pages if needed
                }
                pdf.save(Salary);
            });
        }

    </script>
    <script>
        /* document.addEventListener('livewire:load', function () {
         $('#dept_datatable').DataTable(
             {
                 searching: 1,
                 lengthChange: 1,
                 paging: 1,
                 select: 1,
                 info: 1,
                 language: {
                     paginate: {
                         next: '<i class="fa-solid fa-angle-right"></i>',
                         previous: '<i class="fa-solid fa-angle-left"></i>',
                     },
                     search: ' <i class="fa-solid fa-magnifying-glass"></i>',
                     searchPlaceholder: "Search...",
                 },
             }
         );
     });*/
    </script>
@endsection

Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY