@extends('layouts.app') @section('page_title','Suppliers') @section('content')<div class="card top-card"><div class="card-body"><div class="text-end mb-3"><a href="{{ route('suppliers.create') }}" class="btn btn-success">New Supplier</a></div><table class="table"><thead><tr><th>Name</th><th>Company</th><th>Phone</th><th>Currency</th><th>Balance</th><th></th></tr></thead><tbody>@foreach($suppliers as $supplier)<tr><td>{{ $supplier->name }}</td><td>{{ $supplier->company_name }}</td><td>{{ $supplier->phone }}</td><td>{{ $supplier->currency?->code }}</td><td>{{ number_format($supplier->balance(),2) }}</td><td><a class="btn btn-sm btn-outline-primary" href="{{ route('suppliers.edit',$supplier) }}">Edit</a></td></tr>@endforeach</tbody></table>{{ $suppliers->links() }}</div></div>@endsection
