@extends('layouts.app') @section('content')

Supplier

@foreach ($suppliers as $item) @endforeach
NAME CONTACT CONTACT PERSON MCC ADDRESS
@if ($item->status == 'active')

@else

@endif
{{ isset($item->user->profile_pic) ? $item->user->profile_pic : '' }}
{{ @$item->name }}
@php $rating = App\Helpers\CommonHelper::getUserRating('supplier',@$item->id); @endphp @if($rating->count > 0) @if($rating->average > 0 && $rating->average < 1) @endif @if($rating->average >= 1) @endif @if($rating->average > 1 && $rating->average < 2) @endif @if($rating->average >= 2) @endif @if($rating->average > 2 && $rating->average < 3) @endif @if($rating->average >= 3) @endif @if($rating->average > 3 && $rating->average < 4) @endif @if($rating->average >= 4) @endif @if($rating->average > 4 && $rating->average < 5) @endif @if($rating->average >= 5) @endif ({{$rating->count}}) @endif
@if(@$item->badge == 'silver') @endif @if(@$item->badge == 'gold') @endif @if(@$item->badge == 'diamond') @endif @if(@$item->badge == 'platinum') @endif +256 {{ @$item->phone }}
{{ @$item->email }}
{{ @$item->contact_person }} {{ @$item->mcc->name }} {{ @$item->user->address->full_address }}
@if (count($suppliers) == 0)
No record(s) found!
@endif
{{ $suppliers->appends(request()->input())->links('partials.pagination') }}
@endsection @section('scripts') @endsection