@extends('feedback.sheet.template.template') @php // ページ番号 $paginate = 0; // 左側の行数カウント(最大値から「明細行数+マージン」分減算していき、収まらなかったら0にして右側にシフトする) $leftNum = Config::get('const.FED007_CHECK_MAX'); // 右側の行数カウント(最大値から「明細行数+マージン」分減算していき、収まらなかったら0にして次のページの左側にシフトする) $rightNum = 0; @endphp @section('link') @stop @section('content') @if(!empty($evaluationMap))
@include('feedback.evaluation.historyPrintPDF.header', array('paginate' => ++$paginate, 'title' => '上司・自己評価結果'))
@foreach($evaluationMap AS $key => $evaluations) @php // 各フラグと行数カウントの計算 list($headerFlg, $leftFlg, $rightFlg, $leftNum, $rightNum) = App\Http\Controllers\Feedback\Evaluation\HistoryController::calcPrintViewFlagsAndNumbers( $leftNum, $rightNum, count($evaluations)); @endphp @if(!$headerFlg && $leftFlg)
@elseif($rightFlg)
@endif @if(!$headerFlg || !$leftFlg) @include('feedback.evaluation.historyPrintPDF.table') @endif @if($headerFlg)
@endif @if($headerFlg)
@include('feedback.evaluation.historyPrintPDF.header', array('paginate' => ++$paginate, 'title' => '上司・自己評価結果'))
@endif @if($headerFlg && $leftFlg)
@include('feedback.evaluation.historyPrintPDF.table') @endif @if($loop->last)
@endif @endforeach @endif {{--Start Superior Free Memo Page--}} @foreach($superiorMemoPerPages as $superiorMemo)
@include('feedback.evaluation.historyPrintPDF.header', array('paginate' => ++$paginate, 'title' => '上司・自己評価結果'))
@if($loop->first)
上司コメント
@endif
{{$superiorMemo}}
@endforeach {{--End Superior Free Memo Page--}} {{--Start Self Free Memo Page--}} @foreach($selfMemoPerPages as $selfMemo)
@include('feedback.evaluation.historyPrintPDF.header', array('paginate' => ++$paginate, 'title' => '上司・自己評価結果'))
@if($loop->first)
自己コメント
@endif
{{$selfMemo}}
@endforeach {{--End Self Free Memo Page--}} @stop