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


From :

to

Vehicle Invoice List

@foreach($orders as $data) @endforeach
ID Type Date Invoice Party Name Payment Type Amount Gst Total Amount Paid Amount Payment Status Action
{{$data->id}} @if(Auth::user()->hasRole('super_admin','admin')) @if($data->user_id==$party_id) PURCHASE @else SELL @endif @else @if($data->user_id==Auth::user()->id) PURCHASE @else SELL @endif @endif {{date('d M Y', strtotime($data->bill_date))}} {{$data->invoice_number}} @if(Auth::user()->hasRole('super_admin','admin')) @if($data->user_id==$party_id) {{$data->partyname}} @else {{$data->name}} @endif @else @if($data->user_id==Auth::user()->id) {{$data->partyname}} @else {{$data->name}} @endif @endif {{$data->payment_type}} ₹{{ number_format($data->total_price, 2)}} ₹{{ number_format($data->gst,2)}} ₹{{ number_format($data->grand_total_price,2)}} ₹{{ number_format($data->paid_amount,2)}} @if($data->status==1) Paid @else Unpaid @endif
@if(Auth::user()->hasRole('super_admin','admin') OR $data->party_id==Auth::user()->id ) @endif
@endsection