@extends('admin.layouts.form') @section('content')
Employee | Department | Leave type | Reason | From date | To date | Duration | Status | Submitted At | Option |
---|---|---|---|---|---|---|---|---|---|
{!! $result->user->name !!} | {!! $result->user->employee->department !!} | {!! $result->leave_type !!} | {!! $result->reason !!} | {!! $result->from_date !!} | {!! $result->to_date !!} | {!! $result->duration !!} | @if($result->status == 'Approved') {!! $result->status !!} @elseif($result->status == 'Rejected') {!! $result->status !!} @elseif($result->status == 'Pending') {!! $result->status !!} @endif | {!! $result->created_at->toDateString() !!} | {!! Form::select('leave_type', ['Approved'=>'Approved', 'Rejected'=>'Rejected'], $result->status, ['class'=>'form-control selectpicker', 'required'=>'true', 'v-model'=>'selectedStatus', '@change'=>'on_update_status('.$result->id.')','placeholder'=>'--Please Select--']) !!} |