@extends('layouts.master') @section('content')
{{$title}}
Leave List
{{ csrf_field() }}
@foreach($all_users as $user) @if($user['id']==$leave_req->user_id) {{$user['name']}} @endif @endforeach
@foreach($purposes as $purp) @if($purp['id']==$leave_req->purpose) {{$purp['name']}} @endif @endforeach
{{ $leave_req->description }}
@if($leave_req->approval == 0) @else Already Approved @endif Discard
Leave Summary
@foreach($purposes as $pur) @endforeach
# Leave Head Allowed Taken Remaining
{{ $count++ }} {{ $pur['name']}} {{ $pur['approved_days'] }} @if(!empty($pur['taken'])) {{ $pur['taken'] }} @else {{ 0 }} @endif {{ $remaining = ($pur['approved_days'] - $pur['taken']) }} days
Leave History
@foreach($all_leave_req as $info) @endforeach
# Name Purpose Leave From Leave To Days Status
{{ $count++ }} @foreach($all_users as $user) @if($user['id']==$info->user_id) {{$user['name']}} @endif @endforeach @foreach($purposes as $purp) @if($purp['id']==$info->purpose) {{$purp['name']}} @endif @endforeach {{ date("jS-F-Y", strtotime($info->from)) }} {{ date("jS-F-Y", strtotime($info->to)) }} from); $end = strtotime($info->to); $days_between = (ceil(abs( $end - $start) / 86400))+1; echo $days_between;*/ ?> {{ $info->days }} @if($info->approval == 0) Pending @else Approved @endif
@stop @section('style') @stop @section('script') @if(Session::has('msg'))
×   {{Session::get('msg')}}
@endif @stop