@extends('layouts.layout') @section('title', 'Dashboard Settings') @section('content') @php $rolesArr = Auth::user()->roles; @endphp

Dashboard Settings

@csrf
@if($rolesArr[0]->name === 'Admin')
@php $select_yes = 'checked'; $select_no = ''; $total_tickets = isset($settings->total_tickets)?$settings->total_tickets:''; if($total_tickets==1) { $select_yes = 'checked'; $select_no = ''; } if($total_tickets==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $open_tickets = isset($settings->open_tickets)?$settings->open_tickets:''; if($open_tickets==1) { $select_yes = 'checked'; $select_no = ''; } if($open_tickets==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $closed_tickets = isset($settings->closed_tickets)?$settings->closed_tickets:''; if($closed_tickets==1) { $select_yes = 'checked'; $select_no = ''; } if($closed_tickets==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $gym_count = isset($settings->gym_count)?$settings->gym_count:''; if($gym_count==1) { $select_yes = 'checked'; $select_no = ''; } if($gym_count==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $used_gym = isset($settings->used_gym)?$settings->used_gym:''; if($used_gym==1) { $select_yes = 'checked'; $select_no = ''; } if($used_gym==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $unused_gym = isset($settings->unused_gym)?$settings->unused_gym:''; if($unused_gym==1) { $select_yes = 'checked'; $select_no = ''; } if($unused_gym==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $members_graph = isset($settings->members_graph)?$settings->members_graph:''; if($members_graph==1) { $select_yes = 'checked'; $select_no = ''; } if($members_graph==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $revenge_graph = isset($settings->revenge_graph)?$settings->revenge_graph:''; if($revenge_graph==1) { $select_yes = 'checked'; $select_no = ''; } if($revenge_graph==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@else
@can('view_leads')
@php $select_yes = 'checked'; $select_no = ''; $lead_overall = isset($settings->lead_overall)?$settings->lead_overall:''; if($lead_overall==1) { $select_yes = 'checked'; $select_no = ''; } if($lead_overall==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $lead_month = isset($settings->lead_month)?$settings->lead_month:''; if($lead_month==1) { $select_yes = 'checked'; $select_no = ''; } if($lead_month==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@endcan @can('view_enquiry')
@php $select_yes = 'checked'; $select_no = ''; $enquiry_overall = isset($settings->enquiry_overall)?$settings->enquiry_overall:''; if($enquiry_overall==1) { $select_yes = 'checked'; $select_no = ''; } if($enquiry_overall==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $enquiry_month = isset($settings->enquiry_month)?$settings->enquiry_month:''; if($enquiry_month==1) { $select_yes = 'checked'; $select_no = ''; } if($enquiry_month==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@endcan @can('view_followup')
@php $select_yes = 'checked'; $select_no = ''; $followup_week = isset($settings->followup_week)?$settings->followup_week:''; if($followup_week==1) { $select_yes = 'checked'; $select_no = ''; } if($followup_week==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $followup_today = isset($settings->followup_today)?$settings->followup_today:''; if($followup_today==1) { $select_yes = 'checked'; $select_no = ''; } if($followup_today==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@endcan @can('view_members')
@php $select_yes = 'checked'; $select_no = ''; $active_member_overall = isset($settings->active_member_overall)?$settings->active_member_overall:''; if($active_member_overall==1) { $select_yes = 'checked'; $select_no = ''; } if($active_member_overall==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $inactive_member_overall = isset($settings->inactive_member_overall)?$settings->inactive_member_overall:''; if($inactive_member_overall==1) { $select_yes = 'checked'; $select_no = ''; } if($inactive_member_overall==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $members_overall = isset($settings->members_overall)?$settings->members_overall:''; if($members_overall==1) { $select_yes = 'checked'; $select_no = ''; } if($members_overall==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $members_month = isset($settings->members_month)?$settings->members_month:''; if($members_month==1) { $select_yes = 'checked'; $select_no = ''; } if($members_month==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $recent_joinee_last_week = isset($settings->recent_joinee_last_week)?$settings->recent_joinee_last_week:''; if($recent_joinee_last_week==1) { $select_yes = 'checked'; $select_no = ''; } if($recent_joinee_last_week==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $packake_expiry_week = isset($settings->packake_expiry_week)?$settings->packake_expiry_week:''; if($packake_expiry_week==1) { $select_yes = 'checked'; $select_no = ''; } if($packake_expiry_week==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $recent_renewal_month = isset($settings->recent_renewal_month)?$settings->recent_renewal_month:''; if($recent_renewal_month==1) { $select_yes = 'checked'; $select_no = ''; } if($recent_renewal_month==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@endcan @can('view_package')
@php $select_yes = 'checked'; $select_no = ''; $package_statistic_month = isset($settings->package_statistic_month)?$settings->package_statistic_month:''; if($package_statistic_month==1) { $select_yes = 'checked'; $select_no = ''; } if($package_statistic_month==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@endcan @can('view_member_payment')
@php $select_yes = 'checked'; $select_no = ''; $payment_received_month = isset($settings->payment_received_month)?$settings->payment_received_month:''; if($payment_received_month==1) { $select_yes = 'checked'; $select_no = ''; } if($payment_received_month==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $pending_payment_month = isset($settings->pending_payment_month)?$settings->pending_payment_month:''; if($pending_payment_month==1) { $select_yes = 'checked'; $select_no = ''; } if($pending_payment_month==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $payment_received_overall = isset($settings->payment_received_overall)?$settings->payment_received_overall:''; if($payment_received_overall==1) { $select_yes = 'checked'; $select_no = ''; } if($payment_received_overall==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@php $select_yes = 'checked'; $select_no = ''; $pending_payment_overall = isset($settings->pending_payment_overall)?$settings->pending_payment_overall:''; if($pending_payment_overall==1) { $select_yes = 'checked'; $select_no = ''; } if($pending_payment_overall==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@endcan @can('view_staff')
@php $select_yes = 'checked'; $select_no = ''; $staff_overall = isset($settings->staff_overall)?$settings->staff_overall:''; if($staff_overall==1) { $select_yes = 'checked'; $select_no = ''; } if($staff_overall==0) { $select_yes = ''; $select_no = 'checked'; } @endphp
@endcan
@endif
{!! Form::submit('Submit', ['class' => 'button button-primary']) !!}
{!! Form::close() !!}
@endsection