Editing Employee Attendance and Check-ins
This commit is contained in:
@@ -198,6 +198,9 @@ $usersChunked = $users->chunk(3);
|
||||
<p>کارکرد ماه جاری: {{ $u->totaltime }}</p>
|
||||
<p>جریمه تأخیر ماه: {{ number_format($u->monthly_late_fine ?? 0) }} تومان</p>
|
||||
<p>تعداد درخواست ها: {{ $u->req_counts }}</p>
|
||||
@if($u->work_start_time)
|
||||
<p>شروع کار: {{ substr((string) $u->work_start_time, 0, 5) }}</p>
|
||||
@endif
|
||||
</a>
|
||||
@if($userType == 'admin')
|
||||
<button type="button"
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
{{-- align-center text-sm text-start">--}}
|
||||
{{-- <div class="grid grid-cols-2 h-64 gap-2 justify-items-stretch content-between text-sm indent-2.5 align-middle divide">--}}
|
||||
@csrf
|
||||
@if(!empty($viewerIsAdmin))
|
||||
<input type="hidden" name="target_username" value="{{ $user->user_name }}">
|
||||
@endif
|
||||
|
||||
<label class="pb-3">نام و نام خانوادگی:</label>
|
||||
<input type="text" name="name" value="{{ $user->name ?? '' }}"
|
||||
@@ -71,6 +74,18 @@
|
||||
<option value="1" {{ $user->is_admin == 1 ? 'selected' : '' }}>ادمین</option>
|
||||
</select>
|
||||
@endif
|
||||
|
||||
@if(!empty($viewerIsAdmin))
|
||||
<label class="pb-3">ساعت شروع کار:</label>
|
||||
<div class="flex flex-col gap-1">
|
||||
<input type="time" name="work_start_time"
|
||||
value="{{ $user->work_start_time ? substr((string) $user->work_start_time, 0, 5) : '' }}"
|
||||
class="border border-gray-300 rounded-md text-center">
|
||||
<span class="text-[11px] text-gray-500 indent-0">
|
||||
خالی = پیشفرض {{ \App\Services\LatePenaltyService::WORK_START }}
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
<button type="submit"
|
||||
class="col-span-2 bg-cyan-500 hover:bg-cyan-700 cursor-pointer
|
||||
rounded-xl border border-400 justify-self-center
|
||||
|
||||
Reference in New Issue
Block a user