95 lines
5.6 KiB
PHP
95 lines
5.6 KiB
PHP
|
|
@extends('layouts.business.master')
|
||
|
|
|
||
|
|
@section('title')
|
||
|
|
{{ __('Attendance List') }}
|
||
|
|
@endsection
|
||
|
|
|
||
|
|
@section('main_content')
|
||
|
|
<div class="erp-table-section">
|
||
|
|
<div class="container-fluid">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-bodys">
|
||
|
|
<div class="table-header p-16">
|
||
|
|
<h4>{{ __('Attendance List') }}</h4>
|
||
|
|
@usercan('attendances.create')
|
||
|
|
<a type="button" href="#attendances-create-modal" data-bs-toggle="modal" class="add-order-btn rounded-2"><i class="fas fa-plus-circle me-1"></i>{{ __('Add new Attendance') }}</a>
|
||
|
|
@endusercan
|
||
|
|
</div>
|
||
|
|
<div class="table-top-form p-16-0">
|
||
|
|
<div class="d-flex align-items-center gap-1 flex-wrap">
|
||
|
|
<form action="{{ route('hrm.attendances.index') }}" method="GET" class="filter-form" table="#attendances-data">
|
||
|
|
|
||
|
|
<div class="table-top-left d-flex gap-3 margin-l-16">
|
||
|
|
<div class="gpt-up-down-arrow position-relative">
|
||
|
|
<select name="per_page" class="form-control">
|
||
|
|
<option @selected(request('per_page') == 20) value="20">{{ __('Show 20') }}</option>
|
||
|
|
<option @selected(request('per_page') == 50) value="50">{{ __('Show 50') }}</option>
|
||
|
|
<option @selected(request('per_page') == 100) value="100">{{ __('Show 100') }}</option>
|
||
|
|
<option @selected(request('per_page') == 500) value="500">{{ __('Show 500') }}</option>
|
||
|
|
</select>
|
||
|
|
<span></span>
|
||
|
|
</div>
|
||
|
|
<div class="table-search position-relative">
|
||
|
|
<input type="text" name="search" class="form-control" placeholder="{{ __('Search...') }}" value="{{ request('search') }}">
|
||
|
|
<span class="position-absolute">
|
||
|
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||
|
|
<path d="M14.582 14.582L18.332 18.332" stroke="#4D4D4D" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round" />
|
||
|
|
<path d="M16.668 9.16797C16.668 5.02584 13.3101 1.66797 9.16797 1.66797C5.02584 1.66797 1.66797 5.02584 1.66797 9.16797C1.66797 13.3101 5.02584 16.668 9.16797 16.668C13.3101 16.668 16.668 13.3101 16.668 9.16797Z" stroke="#4D4D4D" stroke-width="1.25" stroke-linejoin="round" />
|
||
|
|
</svg>
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="gpt-up-down-arrow position-relative d-print-none employee-select ">
|
||
|
|
<select name="employee" class="form-control">
|
||
|
|
<option value="">{{ __('Select employee') }}</option>
|
||
|
|
@foreach ($employees as $employee)
|
||
|
|
<option value="{{ $employee->id }}" @selected(request('employee') == $employee->id) >{{ $employee->name }}</option>
|
||
|
|
@endforeach
|
||
|
|
</select>
|
||
|
|
<span></span>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="gpt-up-down-arrow position-relative d-print-none">
|
||
|
|
<select name="month" class="form-control">
|
||
|
|
<option value="">{{__('All month')}}</option>
|
||
|
|
@for ($month = 1; $month <= 12; $month++)
|
||
|
|
@php
|
||
|
|
$monthSlug = strtolower(date('F', mktime(0, 0, 0, $month, 1)));
|
||
|
|
@endphp
|
||
|
|
<option value="{{ $monthSlug }}">
|
||
|
|
{{ date('F', mktime(0, 0, 0, $month, 1)) }}
|
||
|
|
</option>
|
||
|
|
@endfor
|
||
|
|
</select>
|
||
|
|
<span></span>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="delete-item delete-show d-none">
|
||
|
|
<div class="delete-item-show">
|
||
|
|
<p class="fw-bold"><span class="selected-count"></span> {{ __('items show') }}</p>
|
||
|
|
<button data-bs-toggle="modal" class="trigger-modal" data-bs-target="#multi-delete-modal" data-url="{{ route('hrm.attendances.delete-all') }}">{{ __('Delete') }}</button>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div id="attendances-data">
|
||
|
|
@include('hrmaddon::attendances.datas')
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
@endsection
|
||
|
|
|
||
|
|
@push('modal')
|
||
|
|
@include('hrmaddon::component.delete-modal')
|
||
|
|
@include('hrmaddon::attendances.create')
|
||
|
|
@include('hrmaddon::attendances.edit')
|
||
|
|
@endpush
|