@extends('hr_main') @section('title', '| '.$data['pageTitle']) @section('content')
{!! $data['pageTitle'] !!}
@php $i = 0; @endphp @foreach($data['leaveApplications'] as $row) @php $employee = $row->user->employee; $organization = $employee ? $employee->organization : null; $details = $row->applicationDetails; @endphp @if($employee && $organization) @endif @endforeach
SL# Application Date Employee Employee ID Branch Type Range Status Action
{{ ++$i }} {{ date("d-m-Y",strtotime($row->created_at)) }} {{ $employee->emp_name_english }} {{ $employee->emp_id }} {{ $organization->branch->name }} {{ $details->first()->leaveType->tag->name ?? '' }} {{ date('d-m-Y', strtotime($details->first()->from_date)) ?? '' }} - {{ date('d-m-Y', strtotime($details->first()->to_date)) ?? '' }} {{ $row->status }} @if($row->status == 'Pending') /home/shikkhaplus/public_html/demo_bk/resources/views/hr/myLeaveApplication/index.blade.php on line 71
" class="btn btn-xs btn-danger delete-action" title="Delete">
@endif
@endsection