@extends('admin.layout.master') @section('home')

Leave Application List

{{-- --}} Add Leave Application
@if(Session::has('message'))

{{ Session::get('message') }}

@endif
@if(!empty($allAppList)) @foreach ($allAppList as $item) @if ($item->empBasicInfo->fetch_department) @else @endif @if ($item->approve_status == 2) @elseif($item->approve_status ==3) @elseif($item->approve_status ==1) @else @endif @endforeach @endif
Emp Emp Code Dept Leave Count Leave Type Leave Date Documents Approval Status Action
{{ $item->empBasicInfo->emp_name }} {{ $item->empBasicInfo->emp_code }}{{ $item->empBasicInfo->fetch_department->name }}Not Found{{ $item->leave_count }} {{ $item->leaveType->name }} {{ date('d/m/y', strtotime($item->start_date)) }} TO {{ date('d/m/y', strtotime($item->end_date)) }} @if($item->documents) Documents Link@endif ApprovedRejectedPendingNot Registered @if ($item->approve_status != 2 and $item->approve_status == 1 and $item->approve_status != 3) @include('admin.mapping_blade.mapping', ['approve_status' => $item->approve_status, 'approvals' =>$item->approvals,'action_id'=>2,'cost_center_id'=>1,'item_id'=>$item->id,'model_name'=>"App\\\Models\\\Payroll\\\Leave\\\PayLeaveTaken"]) Cancel @if(!($item->approvals && count($item->approvals->where('admin_id',active_user()))>0)) {{-- Edit --}} {{-- --}} @endif @endif Edit
@include('payroll.leave.form.new_app_list') @endsection