@extends('layouts.app') @section('title', 'پرونده کارگر') @section('content') @can('workers.manage')ویرایش@endcan
@can('workers.manage')

ثبت کارکرد

@csrf

پرداخت / مساعده

@csrf
@endcan @can('workers.manage')

حضور و غیاب امروز

@if ($todayAttendance->count()) {{ $todayAttendance->first()->statusLabel() }} @endif
@csrf

{{ rm_num($attendanceSummary['present']) }}

حاضر

{{ rm_num($attendanceSummary['absent']) }}

غایب

{{ rm_num($attendanceSummary['leave']) }}

مرخصی

{{ rm_num($attendanceSummary['hours'], 1) }}

ساعت ماه

مساعده با اقساط

@csrf

آخرین مساعده

@if ($advance)

{{ $advance->number }} {{ $advance->statusLabel() }}

مبلغ / مانده{{ rm_money($advance->amount) }} / {{ rm_money($advance->remainingAmount()) }}

@foreach ($advance->installments as $installment)
قسط {{ rm_count($installment->sequence) }} · {{ jdate($installment->due_date) }} {{ rm_money($installment->amount) }} @if ($installment->isPaid()) پرداخت @else
@csrf
@endif
@endforeach
@else

مساعده‌ای ثبت نشده است.

@endif
@endcan

گردش حساب

@if ($ledger->count())
@foreach ($ledger as $row) @endforeach
تاریخشرحبدهکاربستانکارمانده
{{ jdate($row['date']) }} {{ $row['description'] }} {{ rm_money($row['debit']) }} {{ rm_money($row['credit']) }} {{ rm_money($row['balance']) }}
@else @endif
@endsection