@extends('front.layouts.frontlayout') @section('head') {{--{!! HTML::style("assets/global/css/components.css")!!}--}} {!! HTML::style("assets/global/css/plugins.css")!!} {!! HTML::style("assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css")!!} @stop @section('mainarea')
{!! $error !!}
@endforeach{{trans('core.id')}} | {{trans('core.date')}} | {{trans('core.days')}} | {{trans('core.type')}} | {{trans('core.reason')}} | {{trans('core.appliedOn')}} | {{trans('core.status')}} | {{trans('core.action')}} |
---|---|---|---|---|---|---|---|
{{-- ID from Contoller ajaxload------}} | {{-- Date from Contoller ajaxload----}} | {{-- Days from Contoller ajaxload----}} | {{-- Leavetype from Contoller ajaxload--}} | {{-- Reason from Contoller ajaxload----}} | {{-- Applied on from Contoller ajaxload---}} | {{-- Status from Contoller ajaxload----}} | {{-- Action from Contoller ajaxload----}} |
{{ ucfirst($leaveType->leaveType) }} | @if (strtolower($leaveType->leaveType) == "annual"){{ $employee->annual_leave }} | @elseif (($key = array_search($leaveType->leaveType, $takenLeaveTypes)) !== FALSE ){{ $leaveType->num_of_leave - $takenLeaves[$key] }} | @else{{ $leaveType->num_of_leave }} | @endif