@extends('layouts.admin') @section('title', 'Vendor Profile') @section('content')
Vendor Profile
{{ $vendor->name }}
{{ str_replace('_', ' ', $vendor->vendor_type) }}
Contact: {{ $vendor->contact_person }}
{{ $vendor->phone }}
{{ $vendor->email }}
Commission: {{ $vendor->commission_type }} {{ $vendor->commission_value }}
Opening Payable: {{ number_format($vendor->opening_payable, 2) }}
Total Expense: {{ number_format($expenseTotal, 2) }}
Total Payment: {{ number_format($paymentTotal, 2) }}
Current Payable: {{ number_format($payable, 2) }}
@endsection