@extends('layouts.erp') @section('title', $item->name) @section('page_title', 'Fournisseur — '.$item->name) @section('content')
Modifier
{{ strtoupper(substr($item->name, 0, 2)) }}

{{ $item->name }}

{{ $item->country ?: 'Fournisseur' }}
@if($item->phone)Appeler@endif
Coordonnées
Contact{{ $item->contact_name ?: '—' }}
Téléphone@if($item->phone){{ $item->phone }}@else — @endif
E-mail{{ $item->email ?: '—' }}
Pays{{ $item->country ?: '—' }}
Conditions{{ $item->payment_terms ?: '—' }}
Adresse{{ $item->address ?: '—' }}
Achats
@if($item->purchases->isEmpty())
Aucun achat.
@else @foreach($item->purchases as $p) @endforeach
N°DateTotalStatut
{{ $p->number }} {{ optional($p->purchase_date)->format('d/m/Y') }} {{ number_format($p->total, 0, ',', ' ') }} F {{ $p->status }}
@endif
@endsection