@extends('layouts.app' ) @section('title') Dashboard @stop @section('css') @stop @section('content')

@role('admin')

@endrole @permission('list-membership')
Search Statements
@endpermission @permission('due-payments')

Current Month Due Amounts View All

@permission('view-membership') @else @endpermission @foreach($due['properties'] as $statement) @if($due['dueAmt'][$statement->id] > 0) @if($due['color'][$statement->id] == 'red') @elseif($due['color'][$statement->id] == 'orange') @else @endif @endif @endforeach
Sr No. Unit No. Member Name Dealer Net Amount Received Amount Due Amount Due Date Number Action
{{$count++}} {{$statement->inventory ? $statement->inventory->unit_number : ''}} {{$statement->customer ? $statement->customer->name: ''}} @if($statement->dealer) {{$statement->dealer->name}} @endif {{number_format($statement->net_pay)}} PKR {{number_format($due['receivedAmt'][$statement->id])}} PKR {{number_format($due['dueAmt'][$statement->id])}} PKR {{$due['dueDate'][$statement->id] ? date('d-m-Y', strtotime($due['dueDate'][$statement->id]->due_date)) : '' }}
@foreach($due['dueMonth'][$statement->id] as $s) @if($loop->last){{date('M', strtotime($s->due_date))}} @else{{date('M', strtotime($s->due_date))}} - @endif @endforeach
{{$statement->customer->mobile_number}} @if($view_membership)    @endif
@endpermission
@stop @section('js') @stop