File: /var/www/kosmicfarms/storage/framework/views/5060cfa6202fdef3837e88288ee9e2678b54b11e.php
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('admin/assets/css/dashforge.dashboard.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="d-sm-flex align-items-center justify-content-between mg-b-20 mg-lg-b-25 mg-xl-b-30">
<div>
<nav aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-style1 mg-b-10">
<li class="breadcrumb-item"><a href="#">Dashboard</a></li>
</ol>
</nav>
<h4 class="mg-b-0 tx-spacing--1">Kosmic Farms Limited</h4>
</div>
<div class="d-none d-md-block">
<button class="btn btn-sm pd-x-15 btn-white btn-uppercase"><i data-feather="mail" class="wd-10 mg-r-5"></i> Products</button>
<button class="btn btn-sm pd-x-15 btn-white btn-uppercase mg-l-5"><i data-feather="printer" class="wd-10 mg-r-5"></i> Production</button>
<button class="btn btn-sm pd-x-15 btn-white btn-uppercase mg-l-5"><i data-feather="file" class="wd-10 mg-r-5"></i> Sensors</button>
</div>
</div>
<div class="row row-xs">
<div class="col-lg-12 col-xl-12 mg-t-10">
<div class="card mg-b-10">
<div class="card-header pd-t-20 d-sm-flex align-items-start justify-content-between bd-b-0 pd-b-0">
<div>
<h6 class="mg-b-5">Your Most Recent Earnings</h6>
<p class="tx-13 tx-color-03 mg-b-0">Your sales and referral earnings over the last 30 days</p>
</div>
<div class="d-flex mg-t-20 mg-sm-t-0">
<div class="btn-group flex-fill">
<button class="btn btn-white btn-xs active">Range</button>
<button class="btn btn-white btn-xs">Period</button>
</div>
</div>
</div><!-- card-header -->
<div class="card-body pd-y-30">
<div class="d-sm-flex">
<div class="media">
<div class="wd-40 wd-md-50 ht-40 ht-md-50 bg-teal tx-white mg-r-10 mg-md-r-10 d-flex align-items-center justify-content-center rounded op-6">
<i data-feather="bar-chart-2"></i>
</div>
<div class="media-body">
<h6 class="tx-sans tx-uppercase tx-10 tx-spacing-1 tx-color-03 tx-semibold tx-nowrap mg-b-5 mg-md-b-8">Gross Earnings</h6>
<h4 class="tx-20 tx-sm-18 tx-md-20 tx-normal tx-rubik mg-b-0">$1,958,104</h4>
</div>
</div>
<div class="media mg-t-20 mg-sm-t-0 mg-sm-l-15 mg-md-l-40">
<div class="wd-40 wd-md-50 ht-40 ht-md-50 bg-pink tx-white mg-r-10 mg-md-r-10 d-flex align-items-center justify-content-center rounded op-5">
<i data-feather="bar-chart-2"></i>
</div>
<div class="media-body">
<h6 class="tx-sans tx-uppercase tx-10 tx-spacing-1 tx-color-03 tx-semibold mg-b-5 mg-md-b-8">Tax Withheld</h6>
<h4 class="tx-20 tx-sm-18 tx-md-20 tx-normal tx-rubik mg-b-0">$234,769<small>.50</small></h4>
</div>
</div>
<div class="media mg-t-20 mg-sm-t-0 mg-sm-l-15 mg-md-l-40">
<div class="wd-40 wd-md-50 ht-40 ht-md-50 bg-primary tx-white mg-r-10 mg-md-r-10 d-flex align-items-center justify-content-center rounded op-4">
<i data-feather="bar-chart-2"></i>
</div>
<div class="media-body">
<h6 class="tx-sans tx-uppercase tx-10 tx-spacing-1 tx-color-03 tx-semibold mg-b-5 mg-md-b-8">Net Earnings</h6>
<h4 class="tx-20 tx-sm-18 tx-md-20 tx-normal tx-rubik mg-b-0">$1,608,469<small>.50</small></h4>
</div>
</div>
</div>
</div><!-- card-body -->
<div class="table-responsive">
<table class="table table-dashboard mg-b-0">
<thead>
<tr>
<th>Date</th>
<th class="text-right">Sales Count</th>
<th class="text-right">Gross Earnings</th>
<th class="text-right">Tax Withheld</th>
<th class="text-right">Net Earnings</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tx-color-03 tx-normal">03/05/2018</td>
<td class="tx-medium text-right">1,050</td>
<td class="text-right tx-teal">+ $32,580.00</td>
<td class="text-right tx-pink">- $3,023.10</td>
<td class="tx-medium text-right">$28,670.90 <span class="mg-l-5 tx-10 tx-normal tx-success"><i class="icon ion-md-arrow-up"></i> 4.5%</span></td>
</tr>
<tr>
<td class="tx-color-03 tx-normal">03/04/2018</td>
<td class="tx-medium text-right">980</td>
<td class="text-right tx-teal">+ $30,065.10</td>
<td class="text-right tx-pink">- $2,780.00</td>
<td class="tx-medium text-right">$26,930.40 <span class="mg-l-5 tx-10 tx-normal tx-danger"><i class="icon ion-md-arrow-down"></i> 0.8%</span></td>
</tr>
<tr>
<td class="tx-color-03 tx-normal">03/04/2018</td>
<td class="tx-medium text-right">980</td>
<td class="text-right tx-teal">+ $30,065.10</td>
<td class="text-right tx-pink">- $2,780.00</td>
<td class="tx-medium text-right">$26,930.40 <span class="mg-l-5 tx-10 tx-normal tx-danger"><i class="icon ion-md-arrow-down"></i> 0.8%</span></td>
</tr>
<tr>
<td class="tx-color-03 tx-normal">03/04/2018</td>
<td class="tx-medium text-right">980</td>
<td class="text-right tx-teal">+ $30,065.10</td>
<td class="text-right tx-pink">- $2,780.00</td>
<td class="tx-medium text-right">$26,930.40 <span class="mg-l-5 tx-10 tx-normal tx-danger"><i class="icon ion-md-arrow-down"></i> 0.8%</span></td>
</tr>
<tr>
<td class="tx-color-03 tx-normal">03/04/2018</td>
<td class="tx-medium text-right">980</td>
<td class="text-right tx-teal">+ $30,065.10</td>
<td class="text-right tx-pink">- $2,780.00</td>
<td class="tx-medium text-right">$26,930.40 <span class="mg-l-5 tx-10 tx-normal tx-danger"><i class="icon ion-md-arrow-down"></i> 0.8%</span></td>
</tr>
</tbody>
</table>
</div><!-- table-responsive -->
</div><!-- card -->
</div><!-- col -->
<div class="col-md-6 col-xl-4 mg-t-10">
<div class="card ht-100p">
<div class="card-header d-flex align-items-center justify-content-between">
<h6 class="mg-b-0">Productions</h6>
<div class="d-flex tx-18">
<a href="" class="link-03 lh-0"><i class="icon ion-md-refresh"></i></a>
<a href="" class="link-03 lh-0 mg-l-10"><i class="icon ion-md-more"></i></a>
</div>
</div>
<ul class="list-group list-group-flush tx-13">
<?php $__currentLoopData = $productions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $production): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($production->maturity > 0): ?>
<?php ( $dayss = days($production->startdate) ); ?>
<li class="list-group-item d-flex pd-sm-x-20">
<div class="avatar d-none d-sm-block"><span class="avatar-initial rounded-circle bg-teal"><i class="icon ion-md-checkmark"></i></span></div>
<div class="pd-sm-l-10">
<p class="tx-medium mg-b-0"><?php echo e($production->name); ?></p>
<small class="tx-12 tx-color-03 mg-b-0"><?php echo e($production->producttype->name); ?></small>
</div>
<div class="mg-l-auto text-right">
<p class="tx-medium mg-b-0"><?php echo e($dayss); ?>/<?php echo e($production->maturity); ?></p>
<?php if($dayss > $production->maturity): ?>
<small class="tx-12 tx-success mg-b-0">Completed</small>
<?php endif; ?>
</div>
</li>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
<div class="card-footer text-center tx-13">
<a href="<?php echo e(url('/production')); ?>" class="link-03">View All Producttions <i class="icon ion-md-arrow-down mg-l-5"></i></a>
</div><!-- card-footer -->
</div><!-- card -->
</div>
<?php if(isset($production_sensors)): ?>
<div class="col-md-6 col-xl-4 mg-t-10">
<div class="card ht-100p">
<div class="card-header d-flex align-items-center justify-content-between">
<h6 class="mg-b-0">Sensors Latest Value</h6>
<div class="d-flex align-items-center tx-18">
<a href="" class="link-03 lh-0"><i class="icon ion-md-refresh"></i></a>
<a href="" class="link-03 lh-0 mg-l-10"><i class="icon ion-md-more"></i></a>
</div>
</div>
<ul class="list-group list-group-flush tx-13">
<?php $__currentLoopData = $production_sensors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $sensor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li class="list-group-item d-flex pd-sm-x-20">
<div class="avatar"><span class="avatar-initial rounded-circle bg-gray-600">s</span></div>
<div class="pd-l-10">
<p class="tx-medium mg-b-0"><?php echo e($sensor->name); ?></p>
<small class="tx-12 tx-color-03 mg-b-0"><?php echo e($sensor->production->name); ?></small>
</div>
<div class="mg-l-auto d-flex align-self-center">
<?php ( $columns=explode(",",$sensor->sensor->sensor->columns) ); ?>
<?php if($sensor->latestReadings): ?>
<?php if(in_array("ph", $columns)): ?>
<?php echo e($sensor->latestReadings->ph); ?>㏗
<?php endif; ?>
<?php if(in_array("oxygen", $columns)): ?>
<?php echo e($sensor->latestReadings->oxygen); ?>DO
<?php endif; ?>
<?php if(in_array("volume", $columns)): ?>
<?php echo e($sensor->latestReadings->volume); ?>㎥
<?php endif; ?>
<?php if(in_array("watertemperature", $columns)): ?>
<?php echo e($sensor->latestReadings->watertemperature); ?>℃
<?php endif; ?>
<?php endif; ?>
</div>
</li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
<div class="card-footer text-center tx-13">
<a href="<?php echo e(url('/devices/sensors')); ?>" class="link-03">View More Sensors <i class="icon ion-md-arrow-down mg-l-5"></i></a>
</div><!-- card-footer -->
</div><!-- card -->
</div>
<?php endif; ?>
<div class="col-md-6 col-xl-4 mg-t-10">
<div class="card ht-100p">
<div class="card-header d-flex align-items-center justify-content-between">
<h6 class="mg-b-0">Motor Status</h6>
<div class="d-flex align-items-center tx-18">
<a href="" class="link-03 lh-0"><i class="icon ion-md-refresh"></i></a>
<a href="" class="link-03 lh-0 mg-l-10"><i class="icon ion-md-more"></i></a>
</div>
</div>
<ul class="list-group list-group-flush tx-13">
<?php if(isset($production_motors)): ?>)
<?php $__currentLoopData = $production_motors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $motor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li class="list-group-item d-flex pd-sm-x-20">
<div class="avatar"><span class="avatar-initial rounded-circle bg-gray-600">s</span></div>
<div class="pd-l-10">
<p class="tx-medium mg-b-0"><?php echo e($motor->name); ?></p>
<small class="tx-12 tx-color-03 mg-b-0"><?php echo e($motor->production->name); ?></small>
</div>
<div class="mg-l-auto d-flex align-self-center">
<?php echo e($motor->status); ?>
</div>
</li>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</ul>
<div class="card-footer text-center tx-13">
<a href="<?php echo e(url('/devices/motors')); ?>" class="link-03">View More Motors <i class="icon ion-md-arrow-down mg-l-5"></i></a>
</div><!-- card-footer -->
</div><!-- card -->
</div>
</div><!-- row -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/kosmicfarms/resources/views/dashboards/product.blade.php ENDPATH**/ ?>