@extends('layouts.app') @section('title', __('deductions.form.show_title') . ' #' . $deduction->id) @section('content')

{{ __('deductions.form.show_title') }}

{{ __('deductions.form.show_title') }} #{{ $deduction->id }}

{{ __('deductions.form.label_employee') }}: {{ $deduction->employee->name }}

@switch($deduction->status) @case('applied') {{ __('deductions.status.applied') }} @break @case('pending') {{ __('deductions.status.pending') }} @break @case('cancelled') {{ __('deductions.status.cancelled') }} @break @default {{ __('deductions.status.unknown') }} @endswitch
{{ __('deductions.table.type') }} {{ __('deductions.type_labels.' . $deduction->type) ?? $deduction->type }} {{ __('deductions.table.description') }} {{ $deduction->description ?: __('deductions.not_specified') }}
{{ __('deductions.table.amount') }} {{ number_format($deduction->amount, 2) }} {{ get_currency_code() }} {{ __('deductions.table.deduction_date') }} {{ $deduction->deduction_date->format('Y-m-d') }}
{{ __('deductions.form.label_end_date') }} {{ $deduction->end_date ? $deduction->end_date->format('Y-m-d') : __('deductions.not_specified') }} {{ __('deductions.table.status') }} @switch($deduction->status) @case('applied') {{ __('deductions.status.applied') }} @break @case('pending') {{ __('deductions.status.pending') }} @break @case('cancelled') {{ __('deductions.status.cancelled') }} @break @default {{ __('deductions.status.unknown') }} @endswitch
{{ __('deductions.table.status') }} @switch($deduction->status) @case('applied') {{ __('deductions.status.applied') }} @break @case('pending') {{ __('deductions.status.pending') }} @break @case('cancelled') {{ __('deductions.status.cancelled') }} @break @default {{ __('deductions.status.unknown') }} @endswitch {{ __('deductions.form.label_frequency') }} @if($deduction->is_monthly) {{ __('deductions.frequency.monthly') }} @else {{ __('deductions.frequency.once') }} @endif
@if($relatedMonthlyDeductions->count() > 0)
{{ __('deductions.cards.monthly') }}
@forelse($relatedMonthlyDeductions as $monthlyDeduction) @empty @endforelse
{{ __('deductions.table.id') }} {{ __('deductions.table.deduction_date') }} {{ __('deductions.table.amount') }} {{ __('deductions.table.status') }} {{ __('deductions.table.actions') }}
{{ $monthlyDeduction->id }} {{ $monthlyDeduction->deduction_date->translatedFormat('F Y') }} ({{ $monthlyDeduction->deduction_date->format('Y-m-d') }}) {{ number_format($monthlyDeduction->amount, 2) }} {{ $currency_name ?? 'د.ك' }} @switch($monthlyDeduction->status) @case('applied') {{ __('deductions.status.applied') }} @break @case('pending') {{ __('deductions.status.pending') }} @break @case('cancelled') {{ __('deductions.status.cancelled') }} @break @default {{ __('deductions.status.unknown') }} @endswitch @can('update', $monthlyDeduction) @endcan @can('delete', $monthlyDeduction)
@csrf @method('DELETE')
@endcan
لا توجد استقطاعات شهرية مرتبطة.
@endif
{{ __('deductions.timestamps.created') }} {{ $deduction->created_at->format('Y-m-d H:i:s') }} {{ __('deductions.timestamps.updated') }} {{ $deduction->updated_at->format('Y-m-d H:i:s') }}
{{ __('deductions.meta.created_by') }} {{ $deduction->meta['created_by']['name'] ?? ($deduction->meta['created_by']['id'] ?? __('deductions.not_specified')) }} {{ __('deductions.form.label_frequency') }} {{ $deduction->meta['original_frequency'] ?? ($deduction->frequency ?? ($deduction->is_monthly ? 'monthly' : 'once')) }}
{{ __('deductions.meta.ip') }} {{ $deduction->meta['ip'] ?? __('deductions.not_specified') }} {{ __('deductions.meta.user_agent') }} {{ $deduction->meta['user_agent'] ?? __('deductions.not_specified') }}
@endsection