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

98 lines
2.5 KiB
PHP
Raw Normal View History

2013-11-26 13:45:07 +01:00
@extends('header')
@section('content')
2013-11-29 13:09:21 +01:00
2013-11-26 13:45:07 +01:00
<div class="pull-right">
{{ Button::link(URL::to('clients/' . $client->id . '/edit'), 'Edit Client') }}
{{ Button::primary_link(URL::to('invoices/create/' . $client->id), 'Create Invoice') }}
</div>
2013-11-29 13:09:21 +01:00
<h2>{{ $client->name }}</h2>
<div class="row">
<div class="col-md-3">
<h3>Details</h3>
<p>{{ $client->getAddress() }}</p>
<p>{{ $client->getPhone() }}</p>
<p>{{ $client->getNotes() }}</p>
</div>
<div class="col-md-3">
<h3>Contacts</h3>
@foreach ($client->contacts as $contact)
{{ $contact->getDetails() }}
@endforeach
</div>
<div class="col-md-6">
2013-12-01 13:22:08 +01:00
<h3>Standing</h3>
2013-11-29 13:09:21 +01:00
<h3>$0.00 <small>Paid to Date USD</small></h3>
2013-12-01 13:22:08 +01:00
<h3>$0.00 <small>Balance USD</small></h3>
2013-11-29 13:09:21 +01:00
</div>
</div>
<p>&nbsp;</p>
<ul class="nav nav-tabs nav-justified">
{{ HTML::tab_link('#activity', 'Activity', true) }}
{{ HTML::tab_link('#invoices', 'Invoices') }}
{{ HTML::tab_link('#payments', 'Payments') }}
2013-12-01 21:58:25 +01:00
{{ HTML::tab_link('#credits', 'Credits') }}
2013-11-29 13:09:21 +01:00
</ul>
<div class="tab-content">
<div class="tab-pane active" id="activity">
{{ Datatable::table()
2013-12-01 21:58:25 +01:00
->addColumn('Date', 'Message', 'Balance')
2013-11-29 13:09:21 +01:00
->setUrl(url('api/activities/'. $client->id))
->setOptions('sPaginationType', 'bootstrap')
->setOptions('bFilter', false)
->render() }}
</div>
<div class="tab-pane" id="invoices">
{{ Datatable::table()
2013-12-01 21:58:25 +01:00
->addColumn('Invoice Number', 'Total', 'Amount Due', 'Invoice Date', 'Due Date', 'Status')
2013-11-29 13:09:21 +01:00
->setUrl(url('api/invoices/' . $client->id))
->setOptions('sPaginationType', 'bootstrap')
->setOptions('bFilter', false)
->render() }}
</div>
<div class="tab-pane" id="payments">
{{ Datatable::table()
->addColumn('Invoice Number', 'Amount', 'Date')
->setUrl(url('api/payments/' . $client->id))
->setOptions('sPaginationType', 'bootstrap')
->setOptions('bFilter', false)
->render() }}
</div>
2013-12-01 21:58:25 +01:00
<div class="tab-pane" id="credits">
{{ Datatable::table()
->addColumn('Credit Number', 'Amount', 'Credit Date')
->setUrl(url('api/credits/' . $client->id))
->setOptions('sPaginationType', 'bootstrap')
->setOptions('bFilter', false)
->render() }}
</div>
2013-11-29 13:09:21 +01:00
</div>
<script type="text/javascript">
$(function() {
});
</script>
2013-11-26 13:45:07 +01:00
@stop