@extends('layouts.client') @section('title','Dashboard') @push('vendor-styles') @endpush @push('page-styles') @endpush @section('body')

Services

Support

Let us know

Questions or Comments?
@php $admin = App\Models\Admin::first(); @endphp Call: {{ $admin->phone_number }}
Email:

Properties

@php $totalProperties = \App\Models\Property::whereUserId($activeUser->id)->count(); $recentProperties = \App\Models\Property::whereUserId($activeUser->id)->latest()->take(2)->get(); @endphp

Total: {{$totalProperties}}


Recently Added

@forelse ($recentProperties as $property)

{{ $property->address }}

@empty

No properties yet

@endforelse
@php $totalRecurringJobs = \App\Models\RecurringHistory::whereUserId($activeUser->id)->whereStatus('Active')->count(); $recurringJobs = \App\Models\RecurringHistory::whereUserId($activeUser->id)->whereStatus('Active')->latest()->take(2)->get(); @endphp

Recurring jobs

Total: {{ $totalRecurringJobs }}

Looks like you have jobs set up on a recurring schedule.


@forelse ($recurringJobs as $recurringJob)

Repeats every {{ $recurringJob->on_every }} days, next order on {{ $recurringJob->date }} for ${{ $recurringJob->grand_total }}

@empty

No recurring jobs yet

@endforelse
@php $totalUpcomingJobs = \App\Models\Order::wherePaymentStatus(2)->whereStatus(1)->whereUserId($activeUser->id)->count(); $upcomingJobs = \App\Models\Order::wherePaymentStatus(2)->whereStatus(1)->whereUserId($activeUser->id)->latest()->take(5)->get(); @endphp

Upcoming Jobs

Total: {{ $totalUpcomingJobs }}

@foreach ($upcomingJobs as $upcomingJob) @endforeach
Service Price Date Recurring status
{{ $upcomingJob->category->name }} ${{ $upcomingJob->grand_total }} {{ $upcomingJob->date }} {{ $upcomingJob->service_type == 1 ? 'One time' : 'Every '.$upcomingJob->period->duration.' Days' }}
@php $totalOngoingJobs = \App\Models\Order::wherePaymentStatus(2)->whereStatus(2)->whereUserId($activeUser->id)->count(); $ongoingJobs = \App\Models\Order::wherePaymentStatus(2)->whereStatus(2)->whereUserId($activeUser->id)->latest()->take(5)->get(); @endphp

Ongoing Projects

Total: {{ $totalOngoingJobs }}

@foreach ($ongoingJobs as $ongoingJob) @if($ongoingJob->provider) @endif() @endforeach
Service Price Date Provider
{{ $ongoingJob->category->name }} ${{ $ongoingJob->grand_total }} {{ $ongoingJob->date }}{{ $ongoingJob->provider->first_name." ".$ongoingJob->provider->last_name }}

M&P Wallet Credits

Current Balance: ${{ $activeUser->wallet->amount }}

Have credits to redeem?

Give ${{ floor(settings('referral_bonus')) }}, Get ${{ floor(settings('referral_bonus')) }}

Refer a new friend and get bonus of upto ${{ floor(settings('referral_bonus')) }} inyour Mowing and Plowing Cash Wallet.

Your referral link: {{ request()->getHost().$activeUser->referral_link }}

Share
@php $upcomingInvoices = App\Models\RecurringHistory::whereUserId($activeUser->id)->whereStatus('Active')->latest()->take(2)->get(); @endphp Billings (Upcoming Invoices)

Upcoming invoices due to recurring job. Invoice will be generated 1 day before the scheduled job date.

@foreach ($upcomingInvoices as $upcomingInvoice) @endforeach
Service Price Invoice Date Occurs every
{{ $upcomingInvoice->category->name }} ${{ $upcomingInvoice->grand_total }} {{ Carbon\Carbon::parse($upcomingInvoice->date)->subDays(1)->format('m/d/Y') }} {{ $upcomingInvoice->on_every}} days

Total Transactions

History

{{-- --}}
@php $totalTransactions = App\Models\Transaction::whereType(1)->whereUserId($activeUser->id)->whereStatus(2)->count(); $totalExpenses = App\Models\Transaction::whereType(1)->whereUserId($activeUser->id)->whereStatus(2)->sum('amount'); @endphp
${{ $totalExpenses }}

Expenses

{{ $totalTransactions }}

Transactions

Support

Let us know

Questions or Comments?
@php $admin = App\Models\Admin::first(); @endphp Call: {{ $admin->phone_number }}
Email:
@endsection @push('vendor-scripts') @endpush @push('page-scripts') @endpush