@extends('admin.layout.master') @section('content') @include('flash-message')
{{__('obs.leave_application_list')}}
{{__('obs.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 @endforeach @endif
{{__('obs.employee')}} {{__('obs.employee_code')}} {{__('obs.department')}} {{__('obs.leave_count')}} {{__('obs.leave_type')}} {{__('obs.leave_date')}} {{__('obs.posting_type')}} {{__('obs.documents')}} {{__('obs.status')}}
{{ $item->empBasicInfo->emp_name }} {{ $item->empBasicInfo->emp_code }}{{ $item->empBasicInfo->fetch_department->name ?? null}}{{__('obs.not_found')}}{{ $item->leave_count }} {{ $item->leaveTypeWithoutScope->name ?? null }} {{ carbon()->parse($item->start_date)->format('d-m-Y') }} TO {{ carbon()->parse($item->end_date)->format('d-m-Y') }} {{ $item->posting_type== 2 ? "Manual" : null }} @if($item->documents) {{__('obs.documents_link')}}@endif @if($item->approve_status==1) Pending @elseif (in_array($item->approve_status,[2])) Approved @elseif (in_array($item->approve_status,[0,3])) Rejected @endif @if($item->approve_status==1)
{!! getApprovalInputField($item->id,$action_id) !!}
@endif @if(in_array($item->approve_status,[1])) {{__('obs.edit')}} @endif Print {{-- @if(company_settings()->approval_system ==2) @endif --}}
@include('payroll.leave.form.new_app_list') @endsection @section('script') @endsection