Files
kulakpos_web/Modules/HrmAddon/resources/views/reports/payrolls/pdf.blade.php
eko54r 3e1b64e008
Some checks failed
Build, Push and Deploy / build-and-push (push) Failing after 3m30s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
Build, Push and Deploy / deploy-staging (push) Has been skipped
Build, Push and Deploy / deploy-production (push) Has been skipped
update addon HRM
2026-05-04 23:04:09 +07:00

66 lines
3.5 KiB
PHP

@extends('layouts.business.pdf.pdf_layout')
@section('pdf_title')
<div class="table-header justify-content-center border-0 d-none d-block d-print-block text-center">
@include('business::print.header')
<h4 style="text-align: center; margin: 0; padding: 0; font-size: 16px;" class="">{{ __('Payroll Report List') }}</h4>
</div>
@endsection
@section('pdf_content')
<table width="100%" cellpadding="6" cellspacing="0"
style="border-collapse: collapse; border: 1px solid gainsboro; font-size:12px;"
id="datatable">
<thead>
<tr style="background-color: #C52127; color: white;">
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Employee') }}</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Date') }}</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Slip No') }}</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Amount') }}</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Payment') }}</th>
<th style="font-size:12px; border:1px solid gainsboro; color: white" class="text-start">{{ __('Status') }}</th>
</tr>
</thead>
<tbody>
@foreach ($payrolls as $payroll)
<tr style="background-color: {{ $loop->even ? '#F5F5F5' : '#FFFFFF' }};">
<td style="border:1px solid gainsboro; text-align:center;">
{{ $payroll->employee->name ?? '' }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
{{ formatted_date($payroll->date) }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
{{ $payroll->puid }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
{{ currency_format($payroll->amount, currency: business_currency()) }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
{{ $payroll->payment_type->name ?? 'Cash' }}
</td>
<td style="border:1px solid gainsboro; text-align:center;">
{{ $payroll->status == 'unpaid' ? 'Unpaid' : 'Paid' }}
</td>
</tr>
@endforeach
</tbody>
@if ($payrolls->count() > 0)
<tfoot>
<tr style="background-color:#C52127; color:#FFFFFF; font-weight:bold;">
<td style="border:1px solid gainsboro; text-align:center; color: white">
{{ __('Total') }}
</td>
<td style="border:1px solid gainsboro; text-align:center;"></td>
<td style="border:1px solid gainsboro; text-align:center;"></td>
<td style="border:1px solid gainsboro; text-align:center; color: white; font-weight: 600;">
{{ currency_format($payrolls->sum('amount'), currency: business_currency()) }}
</td>
<td style="border:1px solid gainsboro; text-align:center;"></td>
</tr>
</tfoot>
@endif
</table>
@endsection