@extends('layouts.master') @section('content')
{{$title}}
Leave Request
@if (session('data'))
{{ session('data') }}
@endif @foreach($all as $info) @endforeach
# Name Purpose Leave From Leave To Days Status Action
{{ $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)) }} {{ $info->days}} @if($info->approval == 0) Pending @else {{ "" }} Approved @endif Details
@stop @section('style') @stop @section('script') @if(Session::has('msg'))
×   {{Session::get('msg')}}
@endif @stop