@extends('layouts.default') @section('title','员工个人信息') @section('content')

员工历史排班 - {{ $staff->staffname }}

@foreach ($staffworkdays as $key=>$sw)

@if ($key == 0) 入职 @else {{ $update_historys_s[$key] }} @endif ~ @if ($key == count($staffworkdays)-1) 至今 @else {{ $update_historys_e[$key] }} @endif

@foreach ($sw as $workday) @if ($workday->work_time != null) @else @endif @if ($workday->home_time != null) @else @endif @endforeach
星期 应上班时间 应下班时间
周{{ $workday->workday_name }}{{ date("H:i",strtotime($workday->work_time)) }}休息{{ date("H:i",strtotime($workday->home_time)) }}休息

应工作时长:{{ $total_duration[$key] }}小时

@endforeach
@if ($id != null) 返回详情 @else 返回详情 @endif
@stop