@extends('layouts.app') @section('title') View Purchase Request @stop @section('css') @stop @section('breadcrumb') @stop @section('content')

Purchase Request / PR-{{$purchase_request->id}} Role : {{ ucfirst(\App\ Role::with('user')->find($role)->name) }}
@if($purchase_request->approval_status[0]->approvel_status == 0) Status : Pending @elseif($purchase_request->approval_status[0]->approvel_status == 1) Status : Approved @elseif($purchase_request->approval_status[0]->approvel_status == 2) Status : Rejected @endif

@php $department = json_decode(json_encode($purchase_request->department), true); @endphp