@extends('admin.layouts.master') @section('title', 'Customer') @section('content')
@include('admin.includes.msg')
Filter
@csrf

Customer Achievement (Total Sales: Rs {{number_format($total,2)}})

Print      
@php $xx=1; @endphp @foreach($users as $p) @php $xx++; @endphp @endforeach
# Customer Name City Locality Mobile No Purchased
{{$xx}} {{$p->name}} @if($p->user_type==3) echo (Agent) @endif @php $city=json_decode($p->cityId); echo @$all_city[$city[0]]; @endphp @if(!empty($p->localityId) && isset($p->localityId) && $p->localityId>0) {{$all_locality[$p->localityId]}} @endif {{$p->phone}} {{ sprintf("%.2f", $p->total) }}
@endsection