@extends('layouts.app') @section('content')
Melkan Suppliers
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@foreach ($suppliers as $supplier) @if($supplier->status == 'active') @else @endif @endforeach
# Name Email Phone Contact Person KRA Pin Status Action
{{ $loop->iteration }} {{ $supplier->name }} {{ $supplier->email }} {{ $supplier->phone }} {{ $supplier->contact_person }} {{ $supplier->kra_pin }}ActiveSuspended
Supplier Products
@foreach ($supplierProducts as $supplierProduct) @endforeach
ID Supplier Name Product Name Cost Quantity U.O.M Action
{{ $loop->iteration }} {{$supplierProduct->supplier->name }} {{ $supplierProduct->product->name }} {{ $supplierProduct->cost }} {{ $supplierProduct->quantity }} {{ $supplierProduct->uom->name }}
@if(session('success')) @endif @if ($errors->any()) @endif @endsection