@extends('admin.layouts.admin') @section('content')
Appointments
  • Total Appointments

    {{ $totalAppointments }}
  • Pending Appointments

    {{ $pendingAppointments }}
  • Completed

    {{ $completedAppointments }}
  • Cancelled

    {{ $cancelledAppointments }}
@if (is_countable($appointments)) @foreach ($appointments as $record) @endforeach @endif
Date & Time User Staff Product Status
{{ date('F d, Y h:ia', strtotime($record->datetime)) }} {{ $record->user_id }} {{ $record->staff_id }} {{ $record->product_id }} @switch($record->status) @case('P') @break @case('S') @break @case('F') @break @default @break @endswitch
{{-- Payments --}}
Payments
  • Total Payments

    {{ $totalPayments }}
    ${{ $totalPaymentsSum }}
    {{--

    30.6%

    --}}
  • Pending

    {{ $pendingPayments }}
    ${{ $pendingPaymentsSum }}
    {{--

    30.6%

    --}}
  • Completed

    {{ $completedPayments }}
    ${{ $completedPaymentsSum }}
    {{--

    5%

    --}}
  • Cancelled

    ${{ $cancelledPayments }}
    ${{ $cancelledPaymentsSum }}
    {{--

    10.6%

    --}}
@if (is_countable($payments)) @foreach ($payments as $record) @endforeach @endif
Appointment ID Amount Payment Type Status Date & Time
{{ $record->appointment_id }} {{ number_format($record->amount, 2) }} @switch($record->status) @case('C') Cash @break @case('S') Stripe @break @default @break @endswitch @switch($record->status) @case('P') @break @case('S') @break @case('F') @break @default @break @endswitch {{ $record->created_at }}
{{-- Staff --}}
Recent Staff
@if (is_countable($staff)) @foreach ($staff as $record) @endforeach @endif
First Name Last Name Phone Email Address City Zipcode Status
{{ $record ? $record->first_name : '' }} {{ $record ? $record->last_name : '' }} {{ $record->phone }} {{ $record->email }} {{ $record->address }} {{ $record->city }} {{ $record->zipcode }} @if ($record->active == '1') @else @endif
{{-- Users --}}
Recent Users
@if (is_countable($users)) @foreach ($users as $record) @endforeach @endif
First Name Last Name Phone Email Address City Zipcode Status
{{ $record ? $record->first_name : '' }} {{ $record ? $record->last_name : '' }} {{ $record->phone }} {{ $record->email }} {{ $record->address }} {{ $record->city }} {{ $record->zipcode }} @if ($record->active == '1') @else @endif
@include('admin.includes.dashboard.appointments-graph') @include('admin.includes.dashboard.payments-graph') @endsection