<html>
<head>
	<meta charset="utf-8">
	<title>外部派单作品分析报表</title>
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>

<table class="table">
	<caption>上周外部派单作品分析报表(注册/UV>0.85)</caption>
   <thead>
      <tr>
         <th>书籍ID</th>
         <th>书籍名称</th>
         <th>UV</th>
         <th>注册用户数</th>
         <th>注册/UV</th>
         <th>强关粉</th>
         <th>强关率（强关/注册）</th>
         <th>充值金额</th>
         <th>付费人数</th>
         <th>充值/UV</th>
         <th>强关付费率（付费/强关）</th>
         <th>UV付费率（付费/UV）</th>
         <th>派单数</th>
         <th>男女频</th>

      </tr>
   </thead>
   <tbody>
   @foreach ($datas[0] as $data1)
       <tr>
           <td>{{$data1['bid']}}</td>
           <td>{{$data1['book_name']}}</td>
           <td>{{$data1['UV']}}</td>

           <td>{{$data1['register_user_sum']}}</td>

           <td>{{$data1['UV']>0?(round($data1['register_user_sum']/$data1['UV'],4)*100).'%':0}}</td>
           <td>{{$data1['force_user_sum']}}</td>
           <td>{{$data1['register_user_sum']>0?(round($data1['force_user_sum']/$data1['register_user_sum'],4)*100).'%':0}}</td>
           <td>{{$data1['recharge_sum']}}</td>
           <td>{{$data1['pay_user_num']}}</td>
           <td>{{$data1['UV']>0?round($data1['recharge_sum']/$data1['UV'],2):0}}</td>
           <td>{{$data1['force_user_sum']>0?(round($data1['pay_user_num']/$data1['force_user_sum'],4)*100)."%":0}}</td>
           <td>{{$data1['UV']>0?(round($data1['pay_user_num']/$data1['UV'],4)*100)."%":0}}</td>
           <td>{{$data1['send_orders_num']}}</td>
           <td>{{$data1['pid']}}</td>

       </tr>
   @endforeach
   </tbody>
</table>
<table class="table">
	<caption>上周外部派单作品分析报表(30%< 注册/UV<85%)</caption>
   <thead>
      <tr>
         <th>书籍ID</th>
         <th>书籍名称</th>
         <th>UV</th>
         <th>注册用户数</th>
         <th>注册/UV</th>
         <th>强关粉</th>
         <th>强关率（强关/注册）</th>
         <th>充值金额</th>
         <th>付费人数</th>
         <th>充值/UV</th>
         <th>强关付费率（付费/强关）</th>
         <th>UV付费率（付费/UV）</th>
          <th>派单数</th>
         <th>男女频</th>

      </tr>
   </thead>
   <tbody>
   @foreach ($datas[1] as $data2)
       <tr>
           <td>{{$data2['bid']}}</td>
           <td>{{$data2['book_name']}}</td>
           <td>{{$data2['UV']}}</td>

           <td>{{$data2['register_user_sum']}}</td>

           <td>{{$data2['UV']>0?(round($data2['register_user_sum']/$data2['UV'],4)*100)."%":0}}</td>
           <td>{{$data2['force_user_sum']}}</td>
           <td>{{$data2['register_user_sum']>0?(round($data2['force_user_sum']/$data2['register_user_sum'],4)*100)."%":0}}</td>
           <td>{{$data2['recharge_sum']}}</td>
           <td>{{$data2['pay_user_num']}}</td>
           <td>{{$data2['UV']>0?round($data2['recharge_sum']/$data2['UV'],2):0}}</td>
           <td>{{$data2['force_user_sum']>0?(round($data2['pay_user_num']/$data2['force_user_sum'],4)*100)."%":0}}</td>
           <td>{{$data2['UV']>0?(round($data2['pay_user_num']/$data2['UV'],4)*100).'%':0}}</td>
           <td>{{$data2['send_orders_num']}}</td>
           <td>{{$data2['pid']}}</td>

       </tr>
   @endforeach
   </tbody>
</table>
<table class="table">
	<caption>上周外部派单作品分析报表( 注册/UV< 30%)</caption>
   <thead>
      <tr>
         <th>书籍ID</th>
         <th>书籍名称</th>
         <th>UV</th>
         <th>注册用户数</th>
         <th>注册/UV</th>
         <th>强关粉</th>
         <th>强关率（强关/注册）</th>
         <th>充值金额</th>
         <th>付费人数</th>
         <th>充值/UV</th>
         <th>强关付费率（付费/强关）</th>
         <th>UV付费率（付费/UV）</th>
          <th>派单数</th>
         <th>男女频</th>

      </tr>
   </thead>
   <tbody>
   @foreach ($datas[2] as $data)
       <tr>
           <td>{{$data['bid']}}</td>
           <td>{{$data['book_name']}}</td>
           <td>{{$data['UV']}}</td>

           <td>{{$data['register_user_sum']}}</td>

           <td>{{$data['UV']>0?(round($data['register_user_sum']/$data['UV'],4)*100)."%":0}}</td>
           <td>{{$data['force_user_sum']}}</td>
           <td>{{$data['register_user_sum']>0?(round($data['force_user_sum']/$data['register_user_sum'],4)*100)."%":0}}</td>
           <td>{{$data['recharge_sum']}}</td>
           <td>{{$data['pay_user_num']}}</td>
           <td>{{$data['UV']>0?round($data['recharge_sum']/$data['UV'],2):0}}</td>
           <td>{{$data['force_user_sum']>0?(round($data['pay_user_num']/$data['force_user_sum'],4)*100)."%":0}}</td>
           <td>{{$data['UV']>0?(round($data['pay_user_num']/$data['UV'],4)*100)."%":0}}</td>
           <td>{{$data['send_orders_num']}}</td>
           <td>{{$data['pid']}}</td>

       </tr>
   @endforeach
   </tbody>
</table>

</body>
</html>
