@extends('layouts.app') @section('title', 'Supplier Details') @section('content')

Supplier Details

@include('manufacturing.partials.navigation')
{{ $model->name }}
Supplier Code {{ $model->supplier_code }}
Name {{ $model->name }}
Email @if($model->email) {{ $model->email }} @else N/A @endif
Phone @if($model->phone) {{ $model->phone }} @else N/A @endif
Address {{ $model->address ?? 'N/A' }}
City {{ $model->city ?? 'N/A' }}
Country {{ $model->country ?? 'N/A' }}
Tax Number {{ $model->tax_number ?? 'N/A' }}
Payment Terms {{ $model->payment_terms ?? 'N/A' }}
Rating
{!! $model->rating_stars !!} ({{ $model->rating }})
Status {{ $model->is_active ? 'Active' : 'Inactive' }}
Created {{ $model->created_at->format('d M Y, H:i') }}
Last Updated {{ $model->updated_at->format('d M Y, H:i') }}
Total Orders {{ $model->purchaseOrders()->count() }}
Total Spent KES {{ number_format($model->purchaseOrders()->sum('total_amount'), 2) }}
Performance Metrics

0

Total Orders

0%

On-Time Delivery

0%

Quality Rate

{{ $model->rating ?? 0 }}

Average Rating
@endsection