@extends('home.partial.layout') @section('content')

Leave Retraction Requests

@if (Session::has('error'))
  • {{ Session::get('error') }}
@endif @if (Session::has('success'))
  • {{ Session::get('success') }}
@endif @if($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@forelse($cancel_applications as $leave_application) @php $badge = "bg-light"; $label = ""; if($leave_application->status == 0){ $badge = "bg-secondary"; $label = "Requested"; }else if($leave_application->status == 1){ $badge = "bg-success"; $label = "Approved"; }else if($leave_application->status == 2){ $badge = "bg-danger"; $label = "Rejected"; }else{ $badge = "bg-warning"; $label = "Pending"; } if('H' == $leave_application->request_from){ $row_bg = 'background-color: #0080ff2e'; }else{ $row_bg = ''; } @endphp @empty @endforelse
Emp Name Emp ID Type of Leave Date(Start / End) Retract Status Action

avatar)}}"> {{ $leave_application->name }} {{ $leave_application->lname }}

{{$leave_application->employee_no}} {{ $leave_application->ltype }} {{date('d-m-Y', strtotime($leave_application->date_from)).' / '.date('d-m-Y', strtotime($leave_application->date_to)) }} @if($leave_application->status == 1) @elseif($leave_application->status == 2) @endif {{$label}} @if(0==$leave_application->status)   @endif
There are no records to display!
@endsection