70 lines
2.3 KiB
PHP
70 lines
2.3 KiB
PHP
@if(isset($documents))
|
|
<div class="printable">
|
|
<table class="table table-bordered table-hover" id="print_table_id">
|
|
@if($input['workflowtype'] == 1)
|
|
<thead class="">
|
|
<tr>
|
|
<th>#</th>
|
|
<th>{{__('Registration Number')}}</th>
|
|
<th>{{__('Sender Letter Number') }}/{{__('Date')}}</th>
|
|
<th>{{__('Sender') }}/{{__('Receiver')}}</th>
|
|
<th>{{__('Approver User') }}</th>
|
|
<th>{{__('Supporter User') }}</th>
|
|
<th>{{__('Topic') }}</th>
|
|
<th>{{__('Date') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@if (isset($documents))
|
|
@foreach ($documents as $r)
|
|
<tr>
|
|
<td>{{ $loop->iteration + (!isset($exp) ? $documents->firstItem() - 1 : 0) }}</td>
|
|
<td><span>{{$r->getRegNumber()}}</span></td>
|
|
<td>{{$r->sender_letter_number}}/{{$r->sender_letter_date->format('d-m-Y')}}</td>
|
|
<td>{{$r->getSenderName()}}</td>
|
|
<td>{{$r->getReviewerUser()}}</td>
|
|
<td>{{$r->getSupportUsers()}}</td>
|
|
<td>{{$r->topic}}</td>
|
|
<td>{{$input['reg_date'] ?? ''}}</td>
|
|
</tr>
|
|
@endforeach
|
|
@endif
|
|
</tbody>
|
|
@elseif(in_array($input['workflowtype'], [2, 3]))
|
|
<thead class="">
|
|
<tr>
|
|
<th>#</th>
|
|
<th>{{__('Registration Number')}}</th>
|
|
{{-- <th>{{__('Sender Letter Number') }}/{{__('Date')}}</th> --}}
|
|
<th>{{__('Sender') }}</th>
|
|
<th>{{__('Approver User') }}</th>
|
|
<th>{{__('Supporter User') }}</th>
|
|
<th>{{__('Topic') }}</th>
|
|
<th>{{__('Date') }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@if (isset($documents))
|
|
@foreach ($documents as $r)
|
|
<tr>
|
|
<td>{{ $loop->iteration + (!isset($exp) ? $documents->firstItem() - 1 : 0) }}</td>
|
|
<td><span>{{$r->getRegNumber()}}</span></td>
|
|
{{-- <td>{{$r->sender_letter_number}}/{{$r->sender_letter_date->format('d-m-Y')}}</td> --}}
|
|
<td>{{$r->getSenderName()}}</td>
|
|
<td>{{$r->getReviewerUser()}}</td>
|
|
<td>{{$r->getSupportUsers()}}</td>
|
|
<td>{{$r->topic}}</td>
|
|
<td>{{$input['reg_date'] ?? ''}}</td>
|
|
</tr>
|
|
@endforeach
|
|
@endif
|
|
</tbody>
|
|
@endif
|
|
</table>
|
|
<div class="modal-footer">
|
|
@if(isset($documents) && !isset($exp))
|
|
<span class="pull-right" style="margin:3px;">{!! $documents->links() !!}</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@endif |