IMMREX7
@extends('teachers.teacher_layout')
@section('content')
<div class="row clearfix">
<div class="col-sm-12">
<div class="card">
<div class="header">
<h2><strong>List of Applied Leaves</strong></h2>
</div>
@if($checkLeave == null)
<div class="body table-responsive">
<p> Unfortunately, You currently do not have the necessary permissions to complete this action or provide the information you're asking for.
If you'd like to grant the required permissions, reach out to the appropriate administrator.</p>
</div>
@else
<div class="body table-responsive">
<table class="table table-bordered table-striped table-hover js-basic-example dataTable">
<thead>
<tr>
<th>EC No.</th>
<th>Name</th>
<th>Department</th>
<th>Designation</th>
<th>From Date</th>
<th>To Date</th>
<th>Leave Type</th>
<th>Message</th>
<th>Document</th>
<th>Issued By</th>
<th colspan="2">Action</th>
</tr>
</thead>
<tbody>
@foreach($empleaves as $value)
@if(isset($value->employee))
<tr>
<td>{{$value->employee->enrollmentNo}}</td>
<td>{{$value->employee->firstName}} {{$value->employee->middleName}} {{$value->employee->lastName}}</td>
<td>{{$value->employee->department->departmentName}}</td>
<td>{{$value->employee->designation->designationName}}</td>
<td>{{Carbon\Carbon::parse($value->leave_from)->format("d-m-Y")}}</td>
<td>{{Carbon\Carbon::parse($value->leave_to)->format("d-m-Y")}}</td>
<td>{{$value->leave_type}}</td>
<td>{{$value->leave_message}}</td>
<td> @if(isset($value->documents)) <a href="{{url('/teacher/leave-document/' . $value->idLeave.'/view')}}" target="_blank">View Document</a> @else NA @endif</td>
<td>
@php $emp = \App\Employee::where('idEmployee', '=', $value->updated_by)->first(); @endphp
@if($emp != null) {{$emp->name}} @endif
@if($value->name != null) {{$value->name}} @endif
</td>
<td>@if($value->status != null) {{$value->status}} @endif</td>
<td>@if($value->status != null) {{$value->remarks}} @else <a class="btn btn-sm btn-success" href="{{url('/teacher/leave-window/'.$value->idLeave)}}" target="_blank">Update Status</a> @endif</td>
</tr>
@endif
@endforeach
</tbody>
</table>
</div>
@endif
</div>
</div>
</div>
@stop
@section('script')
<script>
</script>
@stop
Copyright © 2021 -