@extends('layouts.app') @section('title', __('Purchase History')) @section('content')
{{ __('New Purchase') }}
@forelse ($purchases as $purchase) @empty @endforelse
{{ __('Reference') }}{{ __('Supplier') }}{{ __('Store') }} {{ __('Date') }}{{ __('Total') }}{{ __('Status') }}
{{ $purchase->reference }} {{ $purchase->supplier?->name ?? '—' }} {{ $purchase->store?->name }} {{ $purchase->created_at->format('d/m/Y') }} {{ money($purchase->total) }} {{ __(ucfirst($purchase->status)) }} {{ __('View') }}
{{ __('No purchases.') }}
{{ $purchases->links() }}
@endsection