@extends('layouts.app') @section('content')
@if(auth()->user()->role == "Administrator")
:
Loyalty Ratio
@endif
Customers

@convert(\DB::table('customers')->count())

@include('modal.customer-data')
Enable loyalty points for transations
Loyalty Points Balance

{{empty($app->currency) ? "GHS" : $app->currency}}@convert(\DB::table('loyalty_points')->sum('increase') - \DB::table('loyalty_points')->sum('decrease'))

Top-Rated Customer
@foreach($loyalty_points as $loyalty_points) @if($loyalty_points->customer_name == "WALK-IN CUSTOMER") @continue @endif
Name Total Points Loyalty Code Action