translate base

This commit is contained in:
Mekan1206
2026-07-31 18:08:08 +05:00
parent a794dacd39
commit 581cb8241c
413 changed files with 9087 additions and 428 deletions

View File

@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<title>Leave Summary {{ $employee->full_name }}</title>
<title>{{ __('exports.leave_summary.title', ['name' => $employee->full_name]) }}</title>
<style>
body { font-family: DejaVu Sans, sans-serif; font-size: 12px; color: #1e293b; }
h1, h2 { color: #1d4ed8; }
@@ -12,13 +12,13 @@
</style>
</head>
<body>
<h1>Leave Summary</h1>
<h1>@lang('exports.leave_summary.heading')</h1>
<p>{{ $employee->full_name }} (#{{ $employee->employee_number }})</p>
<p>Annual taken: {{ $summary->vacationTaken }} · Remaining: {{ $summary->vacationRemaining }} · Sick leaves: {{ $summary->sickLeaveCount }}</p>
<p>@lang('exports.leave_summary.annual_taken'): {{ $summary->vacationTaken }} · @lang('exports.leave_summary.remaining'): {{ $summary->vacationRemaining }} · @lang('exports.leave_summary.sick_leaves'): {{ $summary->sickLeaveCount }}</p>
<h2>Vacations</h2>
<h2>@lang('exports.leave_summary.vacations')</h2>
<table>
<thead><tr><th>Start</th><th>End</th><th>Days</th><th>Type</th><th>Status</th></tr></thead>
<thead><tr><th>@lang('exports.leave_summary.start')</th><th>@lang('exports.leave_summary.end')</th><th>@lang('exports.leave_summary.days')</th><th>@lang('exports.leave_summary.type')</th><th>@lang('exports.leave_summary.status')</th></tr></thead>
<tbody>
@forelse ($employee->vacations as $vacation)
<tr>
@@ -29,14 +29,14 @@
<td>{{ $vacation->status->label() }}</td>
</tr>
@empty
<tr><td colspan="5">No vacation records.</td></tr>
<tr><td colspan="5">@lang('exports.leave_summary.no_vacation_records')</td></tr>
@endforelse
</tbody>
</table>
<h2>Sick Leaves</h2>
<h2>@lang('exports.leave_summary.sick_leaves_heading')</h2>
<table>
<thead><tr><th>Start</th><th>End</th><th>Days</th><th>Institution</th></tr></thead>
<thead><tr><th>@lang('exports.leave_summary.start')</th><th>@lang('exports.leave_summary.end')</th><th>@lang('exports.leave_summary.days')</th><th>@lang('exports.leave_summary.institution')</th></tr></thead>
<tbody>
@forelse ($employee->sickLeaves as $leave)
<tr>
@@ -46,7 +46,7 @@
<td>{{ $leave->medical_institution }}</td>
</tr>
@empty
<tr><td colspan="4">No sick leave records.</td></tr>
<tr><td colspan="4">@lang('exports.leave_summary.no_sick_leave_records')</td></tr>
@endforelse
</tbody>
</table>