@extends('layouts.app') @section('content')
今日{{ date('Y-m-d',time()) }}
  • 新进用户
    {{ $today['user']['reg'] }}
  • 课程顾问
    @if($today['user']['counselor'])
    占比 {{ round($today['user']['counselor']/$today['user']['reg'],4)*100 }}%
    @else
    占比 0%
    @endif
    {{ $today['user']['counselor'] }}
  • 机构教师
    @if($today['user']['teacher'])
    占比 {{ round($today['user']['teacher']/$today['user']['reg'],4)*100 }}%
    @else
    占比 0%
    @endif
    {{ $today['user']['teacher'] }}
  • 机构负责人
    @if($today['user']['manage'])
    占比 {{ round($today['user']['manage']/$today['user']['reg'],4)*100 }}%
    @else
    占比 0%
    @endif
    {{ $today['user']['manage'] }}
  • 代理
    @if($today['user']['agency'])
    占比 {{ round($today['user']['agency']/$today['user']['reg'],4)*100 }}%
    @else
    占比 0%
    @endif
    {{ $today['user']['agency'] }}
  • 业务员
    @if($today['user']['salesman'])
    占比 {{ round($today['user']['salesman']/$today['user']['reg'],4)*100 }}%
    @else
    占比 0%
    @endif
    {{ $today['user']['salesman'] }}
汇总数据
  • 总用户数
    {{ $all['user']['reg'] }}
  • 课程顾问
    @if($all['user']['counselor'])
    占比 {{ round($all['user']['counselor']/$all['user']['reg'],4)*100 }}%
    @else
    占比 0%
    @endif
    {{ $all['user']['counselor'] }}
  • 机构教师
    @if($all['user']['teacher'])
    占比 {{ round($all['user']['teacher']/$all['user']['reg'],4)*100 }}%
    @else
    占比 0%
    @endif
    {{ $all['user']['teacher'] }}
  • 机构负责人
    @if($all['user']['manage'])
    占比 {{ round($all['user']['manage']/$all['user']['reg'],4)*100 }}%
    @else
    占比 0%
    @endif
    {{ $all['user']['manage'] }}
  • 代理
    @if($all['user']['agency'])
    占比 {{ round($all['user']['agency']/$all['user']['reg'],4)*100 }}%
    @else
    占比 0%
    @endif
    {{ $all['user']['agency'] }}
  • 业务员
    @if($all['user']['salesman'])
    占比 {{ round($all['user']['salesman']/$all['user']['reg'],4)*100 }}%
    @else
    占比 0%
    @endif
    {{ $all['user']['salesman'] }}
@endsection