1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/resources/views/dashboard.blade.php

150 lines
5.9 KiB
PHP
Raw Normal View History

2015-03-16 22:45: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">
@if (count($paidToDate))
@foreach ($paidToDate as $item)
{{ Utils::formatMoney($item->value, $item->currency_id) }}<br/>
2015-03-16 22:45:25 +01:00
@endforeach
@else
{{ Utils::formatMoney(0) }}
@endif
</div>
<div class="in-thin">
{{ trans('texts.in_total_revenue') }}
</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-thin">
2015-05-08 10:21:29 +02:00
{{ trans('texts.average_invoice') }}
</div>
<div class="in-bold">
2015-05-09 20:25:16 +02:00
@if (count($averageInvoice))
@foreach ($averageInvoice as $item)
{{ Utils::formatMoney($item->invoice_avg, $item->currency_id) }}<br/>
@endforeach
@else
{{ Utils::formatMoney(0) }}
@endif
2015-03-16 22:45: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) }} {{ trans('texts.sent') }}
</div>
</div>
</div>
</div>
</div>
<p>&nbsp;</p>
<div class="row">
<div class="col-md-6">
2015-05-08 10:21:29 +02:00
<div class="panel panel-default dashboard" style="min-height:660px">
2015-04-22 21:21:04 +02:00
<div class="panel-heading" style="background-color:#0b4d78 !important">
2015-03-16 22:45:25 +01:00
<h3 class="panel-title in-bold-white">
<i class="glyphicon glyphicon-exclamation-sign"></i> {{ trans('texts.notifications') }}
</h3>
</div>
<ul class="panel-body list-group">
@foreach ($activities as $activity)
<li class="list-group-item">
<span style="color:#888;font-style:italic">{{ Utils::timestampToDateString(strtotime($activity->created_at)) }}:</span>
2015-03-31 19:42:37 +02:00
{!! Utils::decodeActivity($activity->message) !!}
2015-03-16 22:45:25 +01:00
</li>
@endforeach
</ul>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default dashboard" style="min-height:320px">
2015-04-22 21:21:04 +02:00
<div class="panel-heading" style="background-color:#e37329 !important">
2015-03-16 22:45:25 +01:00
<h3 class="panel-title in-bold-white">
<i class="glyphicon glyphicon-time"></i> {{ trans('texts.invoices_past_due') }}
</h3>
</div>
<div class="panel-body">
<table class="table table-striped">
<thead>
<th>{{ trans('texts.invoice_number_short') }}</th>
<th>{{ trans('texts.client') }}</th>
<th>{{ trans('texts.due_date') }}</th>
<th>{{ trans('texts.balance_due') }}</th>
</thead>
<tbody>
@foreach ($pastDue as $invoice)
@if (!$invoice->client->trashed())
<tr>
2015-05-05 11:48:23 +02:00
<td>{!! $invoice->getLink() !!}</td>
2015-03-16 22:45:25 +01:00
<td>{{ $invoice->client->getDisplayName() }}</td>
<td>{{ Utils::fromSqlDate($invoice->due_date) }}</td>
<td>{{ Utils::formatMoney($invoice->balance, $invoice->client->currency_id) }}</td>
</tr>
@endif
@endforeach
</tbody>
</table>
</div>
</div>
<div class="panel panel-default dashboard" style="min-height:320px;">
2015-04-22 21:21:04 +02:00
<div class="panel-heading" style="margin:0; background-color: #f5f5f5 !important;">
<h3 class="panel-title" style="color: black !important">
2015-03-16 22:45:25 +01:00
<i class="glyphicon glyphicon-time"></i> {{ trans('texts.upcoming_invoices') }}
</h3>
</div>
<div class="panel-body">
<table class="table table-striped">
<thead>
<th>{{ trans('texts.invoice_number_short') }}</th>
<th>{{ trans('texts.client') }}</th>
<th>{{ trans('texts.due_date') }}</th>
<th>{{ trans('texts.balance_due') }}</th>
</thead>
<tbody>
@foreach ($upcoming as $invoice)
@if (!$invoice->client->trashed())
<tr>
2015-04-02 15:06:16 +02:00
<td>{!! $invoice->getLink() !!}</td>
2015-03-16 22:45:25 +01:00
<td>{{ $invoice->client->getDisplayName() }}</td>
<td>{{ Utils::fromSqlDate($invoice->due_date) }}</td>
<td>{{ Utils::formatMoney($invoice->balance, $invoice->client->currency_id) }}</td>
</tr>
@endif
@endforeach
</tbody>
</table>
</div>
</div>
2015-05-08 10:21:29 +02:00
2015-03-16 22:45:25 +01:00
</div>
2015-05-08 10:21:29 +02:00
</div>
2015-03-16 22:45:25 +01:00
2015-05-08 10:21:29 +02:00
<div class="row">
<div class="col-md-6">
</div>
2015-03-16 22:45:25 +01:00
</div>
@stop