@extends('admin.layout.app')
@section('title', 'App Info')
@section('content')
<div class="row">
<div class="col-12">
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
<h4 class="mb-sm-0">App Info</h4>
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="{{route('admin.dashboard')}}">Dashboard</a></li>
<li class="breadcrumb-item active">App Info </li>
</ol>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header align-items-center d-flex">
<h4 class="card-title mb-0 flex-grow-1">App Info</h4>
</div><!-- end card header -->
<div class="card-body">
<div class="live-preview">
<div class="table-responsive">
<table class="table align-middle mb-0 yajra-datatable table-bordered">
<tbody>
<tr>
<td><b>App Name</b></td>
<td>{{$gplay->getName()}}</td>
</tr>
<tr>
<td><b>Version</b></td>
<td>{{$gplay->getAppVersion()}}</td>
</tr>
<tr>
<td><b>Description</b></td>
<td>{{$gplay->getDescription()}}</td>
</tr>
<tr>
<td><b>Number of installs</b></td>
<td>{{number_format($gplay->getInstalls(),0,'.',',')}}</td>
</tr>
<tr>
<td><b>App Category</b></td>
<td>{{$gplay->getCategory()->getId()}}</td>
</tr>
<tr>
<td><b>App Rating</b></td>
<td>
<ul>
<li>5 STARS: {{$gplay->getHistogramRating()->getFiveStars()}}</li>
<li>4 STARS: {{$gplay->getHistogramRating()->getFourStars()}}</li>
<li>3 STARS: {{$gplay->getHistogramRating()->getThreeStars()}}</li>
<li>2 STARS: {{$gplay->getHistogramRating()->getTwoStars()}}</li>
<li>1 STAR: {{$gplay->getHistogramRating()->getOneStar()}}</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div><!-- end card-body -->
</div>
@endsection