@extends('layouts.app') @section('title') All Vendors @stop @section('breadcrumb') @stop @section('content')
@permission('create-vendor')   Add new Vendor @endpermission

All Vendors

@foreach($allVendors as $vendor) @if($vendor->status == true) @else @endif @endforeach
# Name Type Phone No PAID BALANCE Status Action
{{$count++}} {{$vendor->name}} {{$vendor->vendor_type == \App\Vendor::Trader ? 'Trader' : 'Non Trader'}} {{$vendor->phone_number}} {{number_format($paidAmount[$vendor->id])}} {{number_format($billAmount[$vendor->id] -$paidAmount[$vendor->id])}}ActiveInActive @permission('view-vendor') @endpermission @permission('edit-vendor') @endpermission @permission('delete-vendor') @endpermission
@stop @section('js') @stop