- Monthly calendar grid per worker with colour-coded day status - Override types: vacation, sick, custom hours, other, day-off - Date-range override support via modal - Floating 30-min lunch break: finds slot closest to preferred time within configurable window, adapts to existing bookings - Lunch break only applies for shifts >= 6 hours - Lunch slot shown in admin calendar; blocked in booking availability - DB migrations: absence_type/note on worker_schedule_overrides, lunch_window_start/end/preferred_time on workers Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
50 lines
2.5 KiB
PHP
Executable File
50 lines
2.5 KiB
PHP
Executable File
<div class="mainContentContainer" style="top:100px">
|
|
<div class="pageTitle"><?php echo $pageTitle;?></div>
|
|
<div class="form-row">
|
|
<a href="<?php echo SITEURL;?>workers/add-worker" class="submitBtn">Új dolgozó</a>
|
|
</div>
|
|
<div class="form-row">
|
|
<table class="tableClass">
|
|
<tr>
|
|
<td></td>
|
|
<td>#</td>
|
|
<td>Profilkép</td>
|
|
<td>Név</td>
|
|
<td>Leírás</td>
|
|
<td>Beauty</td>
|
|
<td>Barber</td>
|
|
<td>Szerviz kategória</td>
|
|
<td>Aktív</td>
|
|
</tr>
|
|
<?php
|
|
if(is_array($results)){
|
|
foreach($results as $resultItem){
|
|
?>
|
|
<tr>
|
|
<td>
|
|
<a href="<?php echo SITEURL;?>workers/update-worker/<?php echo $resultItem->worker_id;?>"><i class="fas fa-edit"></i></a>
|
|
| <a href="<?php echo SITEURL;?>workers/worker-calendar/<?php echo $resultItem->worker_id;?>"><i class="fas fa-calendar-alt"></i></a>
|
|
| <a href="<?php echo site_url().'workers/worker-process?delete-worker='.$resultItem->worker_id;?>" onclick="return confirm('Valóban törölni szeretnéd?');"><i class="fas fa-trash-alt" style="font-size: 14px;color:#585858;"></i></a>
|
|
</td>
|
|
<td>#<?php echo $resultItem->worker_id;?></td>
|
|
<td><img src="<?php echo SITEURL.'assets/img/'.$resultItem->worker_profile_img;?>" style="width:50px;margin:0;" /></td>
|
|
<td><?php echo $resultItem->worker_name;?></td>
|
|
<td><?php echo $resultItem->worker_info;?></td>
|
|
<td><?php echo $resultItem->is_beauty?'igen':'nem';?></td>
|
|
<td><?php echo $resultItem->is_barber?'igen':'nem';?></td>
|
|
<td><?php echo $resultItem->serv_cat_name;?></td>
|
|
<td><?php echo $resultItem->is_active?'igen':'nem';?></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
}
|
|
else{
|
|
echo '<tr>';
|
|
echo '<td colspan="10">Nincs találat</td>';
|
|
echo '</tr>';
|
|
}
|
|
?>
|
|
|
|
</table>
|
|
</div>
|
|
</div>
|