@extends('adminlayout.admin') @section('content')


From :

to

Vehicle Purchase Requests

@php $y=1; @endphp @foreach($orders as $data) @endforeach
Sr/No. Date Invoice Party Name Status Type Action
{{$y++}} {{date('d M Y', strtotime($data->bill_date))}} {{$data->invoice_number}} @if(Auth::user()->id==$data->user_id) {{$data->partyname}} @else {{$data->name}} @endif @if($data->status==1) Approved @elseif($data->status==2) Reject @else Pending @endif @if(Auth::user()->id==$data->party_id) Receive @else Sent @endif @if(isset($data->request_items))
@if(Auth::user()->id==$data->party_id) @if($data->status==0) Proceed @elseif($data->status==1) @endif @else @if($data->status==0) Edit @endif @endif @if(Auth::user()->id==$data->party_id) @endif
@endif
@endsection