@extends('layouts.app') @section('title', $supplier->display_name) @section('content')
Supplier Details
Add New Quote
Create price record
View All Quotes
{{ $supplier->priceRecords->count() }} records
contact_number ? 'onclick="return false;"' : '' }}>Call Supplier
@if($supplier->contact_number){{ $supplier->contact_number }}
@elseNo number provided
@endifRequest Quote
Email template
Edit Details
Update information
Quick Quote
Fast entry
Total Quotes
{{ $supplier->priceRecords->count() }}
Item Types
{{ $supplier->priceRecords->groupBy('item_type')->count() }}
Supplier Created
{{ $supplier->created_at->format('M d, Y \a\t h:i A') }}
Last Updated
{{ $supplier->updated_at->format('M d, Y \a\t h:i A') }}
| Item Type | Description | Quantity | Unit Price | Quoted Date | Actions |
|---|---|---|---|---|---|
|
{{ $record->item_type }}
@if($record->size_display)
{{ $record->size_display }}
@endif
|
{{ $record->short_description }}
|
{{ $record->quantity_with_uom }}
|
{{ $record->unit_price_formatted }}
{{ $record->postage_display }}
|
{{ $record->quoted_at->format('M d, Y') }}
{{ $record->quoted_at->diffForHumans() }}
|
| Item Type | Latest Price | Quantity | Postage | Last Quoted | Total Records | Actions |
|---|---|---|---|---|---|---|
|
{{ $item['type'] }}
|
{{ $item['latest_price'] }}
|
{{ $item['latest_quantity'] }}
|
{{ $item['latest_postage'] }}
|
{{ $item['latest_date'] }}
{{ \Carbon\Carbon::parse($item['latest_date_full'])->diffForHumans() }}
|
{{ $item['count'] }} {{ $item['count'] == 1 ? 'record' : 'records' }} |
{{ $itemTypes->count() }}
@php $mostQuoted = $itemTypes->sortByDesc('count')->first(); @endphp {{ $mostQuoted['type'] ?? 'N/A' }}
{{ $mostQuoted['count'] ?? 0 }} records
@php $minPrice = $supplier->priceRecords->min('unit_price'); $maxPrice = $supplier->priceRecords->max('unit_price'); @endphp RM {{ number_format($minPrice, 2) }} - RM {{ number_format($maxPrice, 2) }}
Once deleted, this supplier and all associated price records will be permanently removed.
@if($supplier->priceRecords->count() > 0)
Warning: This will delete {{ $supplier->priceRecords->count() }} price records!
@endif