@extends('backend.master_structure') @section('content') @php use App\DashboardModel; $session_id = session()->get('session_id'); $member_data_instance = new DashboardModel(); $member_data = $member_data_instance->get_member_data($session_id); $user_id = $member_data->user_id; @endphp
Month | Profile Views | Phone Number | Post Views | Website | Contact Form | |
---|---|---|---|---|---|---|
{{ strtoupper(date('M', mktime(0, 0, 0, $month, 1))) }} | {{ $data['Profile'][$month - 1] > 0 ? $data['Profile'][$month - 1] : '-' }} | {{ $data['PhoneNumber'][$month - 1] > 0 ? $data['PhoneNumber'][$month - 1] : '-' }} | {{ $data['View Post'][$month - 1] > 0 ? $data['View Post'][$month - 1] : '-' }} | {{ $data['Facebook'][$month - 1] > 0 ? $data['Facebook'][$month - 1] : '-' }} | {{ $data['Website'][$month - 1] > 0 ? $data['Website'][$month - 1] : '-' }} | {{ $data['Contact Form'][$month - 1] > 0 ? $data['Contact Form'][$month - 1] : '-' }} |
Total | {{ array_sum($data['Profile']) }} | {{ array_sum($data['PhoneNumber']) }} | {{ array_sum($data['View Post']) }} | {{ array_sum($data['Facebook']) }} | {{ array_sum($data['Website']) }} | {{ array_sum($data['Contact Form']) }} |