@extends('layouts.master') @section('page_title','View Details') @section('title','Customer Details') @section('main_item','Customer') @section('sub_item','View Details') @section('content')
{{$customer->name}}
Address
{{$customer->landmark}}
@if ($customer->city || $customer->other_city) @if ($customer->city_id->name_en!='Other'){{$customer->city_id->name_en}}
@else{{$customer->other_city}}
@endif @endif @if ($customer->district_id!=0){{$customer->district->name_en }}
@endif{{$customer->state}}
@if ($customer->country_id){{$customer->country->nicename}}
@endif{{$customer->business_name}}
Mobile
{{$customer->mobile}}
{{$customer->mobile_2}}
{{$customer->landline}}
Sales Value
Rs {{number_format($customer->sales->sum('invoice_nettotal'),2)}}
Return Value
Rs {{number_format($sale_returns ,2)}}
Total Sale
Rs {{number_format($customer->sales->sum('invoice_nettotal')-$sale_returns,2)}}