1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/views/dashboard.blade.php

144 lines
4.7 KiB
PHP
Raw Normal View History

2014-02-16 21:32:25 +01:00
@extends('header')
@section('content')
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-body">
<img src="{{ asset('images/totalincome.png') }}" class="in-image"/>
<div class="in-bold">
{{ $totalIncome }}
</div>
<div class="in-thin">
2014-03-27 13:25:31 +01:00
{{ trans('texts.in_total_revenue') }}
2014-02-16 21:32:25 +01:00
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-body">
<img src="{{ asset('images/clients.png') }}" class="in-image"/>
<div class="in-bold">
{{ $billedClients }}
</div>
<div class="in-thin">
2014-03-27 13:25:31 +01:00
{{ Utils::pluralize('billed_client', $billedClients) }}
2014-02-16 21:32:25 +01:00
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-body">
<img src="{{ asset('images/totalinvoices.png') }}" class="in-image"/>
<div class="in-bold">
{{ $invoicesSent }}
</div>
<div class="in-thin">
{{ Utils::pluralize('invoice', $invoicesSent) }} sent
</div>
</div>
</div>
</div>
</div>
<p>&nbsp;</p>
<div class="row">
<div class="col-md-6">
2014-02-23 15:51:52 +01:00
<div class="panel panel-default dashboard" style="min-height:320px">
<div class="panel-heading" style="background-color:#0b4d78">
2014-02-16 21:32:25 +01:00
<h3 class="panel-title in-bold-white">
2014-03-27 13:25:31 +01:00
<i class="glyphicon glyphicon-exclamation-sign"></i> {{ trans('texts.notifications') }}
2014-02-16 21:32:25 +01:00
</h3>
</div>
<ul class="panel-body list-group">
@foreach ($activities as $activity)
<li class="list-group-item">
2014-02-17 00:09:34 +01:00
<span style="color:#888;font-style:italic">{{ Utils::timestampToDateString(strtotime($activity->created_at)) }}:</span>
2014-02-16 21:32:25 +01:00
{{ Utils::decodeActivity($activity->message) }}
</li>
@endforeach
</ul>
</div>
</div>
<div class="col-md-6">
2014-02-23 15:51:52 +01:00
<div class="panel panel-default dashboard" style="min-height:320px">
2014-02-16 21:32:25 +01:00
<div class="panel-heading" style="background-color:#e37329">
<h3 class="panel-title in-bold-white">
2014-03-27 13:25:31 +01:00
<i class="glyphicon glyphicon-time"></i> {{ trans('texts.invoices_past_due') }}
2014-02-16 21:32:25 +01:00
</h3>
</div>
<div class="panel-body">
2014-02-23 15:51:52 +01:00
<table class="table table-striped">
2014-02-16 21:32:25 +01:00
<thead>
2014-03-27 13:25:31 +01:00
<th>{{ trans('texts.invoice_number_short') }}</th>
<th>{{ trans('texts.client') }}</th>
<th>{{ trans('texts.due_date') }}</th>
<th>{{ trans('texts.balance_due') }}</th>
2014-02-16 21:32:25 +01:00
</thead>
<tbody>
@foreach ($pastDue as $invoice)
<tr>
<td>{{ $invoice->getLink() }}</td>
<td>{{ $invoice->client->getDisplayName() }}</td>
<td>{{ Utils::fromSqlDate($invoice->due_date) }}</td>
<td>{{ Utils::formatMoney($invoice->balance, $invoice->client->currency_id) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="panel panel-default dashboard" style="min-height:320px;">
<div class="panel-heading" style="margin:0;">
2014-02-16 21:32:25 +01:00
<h3 class="panel-title">
2014-03-27 13:25:31 +01:00
<i class="glyphicon glyphicon-time"></i> {{ trans('texts.upcoming_invoices') }}
2014-02-16 21:32:25 +01:00
</h3>
</div>
<div class="panel-body">
2014-02-23 15:51:52 +01:00
<table class="table table-striped">
2014-02-16 21:32:25 +01:00
<thead>
2014-03-27 13:25:31 +01:00
<th>{{ trans('texts.invoice_number_short') }}</th>
<th>{{ trans('texts.client') }}</th>
<th>{{ trans('texts.due_date') }}</th>
<th>{{ trans('texts.balance_due') }}</th>
2014-02-16 21:32:25 +01:00
</thead>
<tbody>
@foreach ($upcoming as $invoice)
<tr>
<td>{{ $invoice->getLink() }}</td>
<td>{{ $invoice->client->getDisplayName() }}</td>
<td>{{ Utils::fromSqlDate($invoice->due_date) }}</td>
<td>{{ Utils::formatMoney($invoice->balance, $invoice->client->currency_id) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
2014-02-23 15:51:52 +01:00
<div class="col-md-3">
<div class="active-clients">
2014-02-16 21:32:25 +01:00
<div class="in-bold in-white" style="font-size:42px">{{ $activeClients }}</div>
2014-03-27 13:25:31 +01:00
<div class="in-thin in-white">{{ Utils::pluralize('active_client', $activeClients) }}</div>
2014-02-16 21:32:25 +01:00
</div>
2014-02-23 15:51:52 +01:00
</div>
<div class="col-md-3">
<div class="average-invoice">
2014-03-27 13:25:31 +01:00
<div><b>{{ trans('texts.average_invoice') }}</b></div>
2014-02-16 21:32:25 +01:00
<div class="in-bold in-white" style="font-size:42px">{{ $invoiceAvg }}</div>
</div>
2014-02-23 15:51:52 +01:00
2014-02-16 21:32:25 +01:00
</div>
</div>
@stop