84 lines
3.9 KiB
PHP
84 lines
3.9 KiB
PHP
@props(['isClockIn'])
|
|
|
|
<div class="modal fade" id="clockInOutForm" tabindex="-1" aria-labelledby="clockInOutFormLabel" aria-modal="true">
|
|
<div class="modal-dialog">
|
|
<form action="{{ route('attendance.clockInOut') }}" method="POST">
|
|
@csrf
|
|
<div class="modal-content">
|
|
<div class="modal-header mb-3">
|
|
<h5 class="modal-title" id="clockInOutFormLabel">{{ $isClockIn ? 'Clock Out' : 'Clock In' }} </h5>
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
</div>
|
|
|
|
<div class="border border-dashed"></div>
|
|
|
|
<div class="modal-body mb-3">
|
|
<div class="row g-4">
|
|
<div class="col-lg-6">
|
|
<div class="d-flex align-items-center">
|
|
<div class="me-2">
|
|
<i class="feather" data-feather="clock"></i>
|
|
</div>
|
|
<div class="fs-5">
|
|
{{ now()->format('d-m-Y h:i a') }}
|
|
</div>
|
|
</div>
|
|
</div><!--end col-->
|
|
|
|
<div class="col-lg-6">
|
|
<div class="float-end">
|
|
<span class="badge badge-pill bg-info p-1">General Shift</span>
|
|
</div>
|
|
</div><!--end col-->
|
|
|
|
{{-- <div class="col-lg-12">
|
|
<label for="genderInput" class="form-label">Gender</label>
|
|
<div>
|
|
<div class="form-check form-check-inline">
|
|
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio1" value="option1">
|
|
<label class="form-check-label" for="inlineRadio1">Male</label>
|
|
</div>
|
|
<div class="form-check form-check-inline">
|
|
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio2" value="option2">
|
|
<label class="form-check-label" for="inlineRadio2">Female</label>
|
|
</div>
|
|
<div class="form-check form-check-inline">
|
|
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadio3" value="option3">
|
|
<label class="form-check-label" for="inlineRadio3">Others</label>
|
|
</div>
|
|
</div>
|
|
</div><!--end col--> --}}
|
|
|
|
<div class="col-lg-6">
|
|
<div>
|
|
<label for="location" class="form-label">Location</label>
|
|
<input type="text" class="form-control" id="location" value="Kathmandu/Nepal" disabled>
|
|
</div>
|
|
</div><!--end col-->
|
|
|
|
@if (!$isClockIn)
|
|
<div class="col-lg-6">
|
|
{{ html()->label('Working From')->class('form-label') }}
|
|
{{ html()->select('work_from_type', ['home' => 'Home', 'office' => 'Office', 'other' => 'Other'])->class('form-control')->placeholder('Working from?')->attribute('required') }}
|
|
</div><!--end col-->
|
|
<input type="hidden" name="type" value="clockin">
|
|
@else
|
|
<input type="hidden" name="type" value="clockout">
|
|
@endif
|
|
|
|
</div><!--end row-->
|
|
</div>
|
|
<div class="border border-dashed"></div>
|
|
<div class="modal-footer mt-3">
|
|
<div class="hstack justify-content-end gap-2">
|
|
<button type="button" class="btn btn-light btn-sm" data-bs-dismiss="modal">Cancel</button>
|
|
<button type="submit"
|
|
class="btn {{ $isClockIn ? 'btn-danger' : 'btn-primary' }} btn-sm">{{ $isClockIn ? 'Clock Out' : 'Clock In' }}</button>
|
|
</div>
|
|
</div><!--end col-->
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|