@extends('layouts.app')
@section('title', $customer->name)
@section('content')
@if($customer->phone)
- Phone
- {{ $customer->phone }}
@endif
@if($customer->address)
- Address
- {{ $customer->address }}
@endif
- Loyalty points
- {{ $customer->loyalty_points }}
@if($customer->invoices->isNotEmpty())
Purchase history
| Invoice |
Date |
Total |
Actions |
@foreach($customer->invoices as $inv)
| {{ $inv->invoice_number }} |
{{ $inv->invoice_date->format('d M Y') }} |
{{ number_format($inv->total, 2) }} |
View
|
@endforeach
@else
No purchase history yet.
@endif
@endsection