@extends('admin.layouts.master') @section('title', 'Dashboard') @section('content') @php function daysleft($date){ $datetime1 = new DateTime(date('Y-m-d')); $datetime2 = new DateTime($date); $difference = $datetime1->diff($datetime2); echo $difference->y.' years, ' .$difference->m.' months, ' .$difference->d.' days'; } $telecallerManager = 0; if(Auth::user()->designation == 'Manager'){ $telecallerManager = 1; } @endphp
| 1 |
Trade Licence
|
{{ Auth::user()->trade_licence_validupto }} | Expire |
{{ daysleft(Auth::user()->trade_licence_validupto) }}
|
| 2 |
Food License
|
{{ Auth::user()->food_license_validupto }} | Expire |
{{ daysleft(Auth::user()->food_license_validupto) }}
|
| 3 |
Vehicle Registration Certificate
|
{{ Auth::user()->rc_validupto }} | Expire |
{{ daysleft(Auth::user()->rc_validupto) }}
|
| 4 |
Delivery Boy Driving Licenses
|
{{ Auth::user()->dl_validupto }} | Expire |
{{ daysleft(Auth::user()->dl_validupto) }}
|
| # | {{ $telecallerManager == 1 ? 'Telecaller Name' : 'Customer Name' }} | Mobile Number | @if($telecallerManager == 1)customer type | Locality | @elseLast Billed Amount | Last Billed Date | Purchased (Last 3 days) |
Locality | Action | @endif |
|---|---|---|---|---|---|---|---|---|---|---|
| {{$x}} |
{{$c->name}}
|
{{$c->phone}} | @if($telecallerManager == 1){{ $c->customer_type_names }} | @else | {{ $c->last_purchase_amount }} | {{ $c->last_purchase_date ? date('Y-m-d H:i:s', strtotime($c->last_purchase_date)) : '' }} |
Rs {{$c->limit_price}}
|
@if($c->mapped_to>0) Order Now @else No Retailer @endif | @endif