@extends('header') @section('content')
{{ Former::open('clients/bulk')->addClass('mainForm') }}
{{ Former::text('action') }} {{ Former::text('id')->value($client->public_id) }}
{{ DropdownButton::normal('Edit Client', Navigation::links( [ ['Edit Client', URL::to('clients/' . $client->public_id . '/edit')], [Navigation::DIVIDER], ['Archive Client', "javascript:onArchiveClick()"], ['Delete Client', "javascript:onDeleteClick()"], ] ) , ['id'=>'normalDropDown'])->split(); }} {{ DropdownButton::primary('Create Invoice', Navigation::links( [ ['Create Invoice', URL::to('invoices/create/' . $client->public_id )], ['Enter Payment', URL::to('payments/create/' . $client->public_id )], ['Enter Credit', URL::to('credits/create/' . $client->public_id )], ] ) , ['id'=>'primaryDropDown'])->split(); }} {{ Former::close() }}

{{ $client->getDisplayName() }}

@if ($client->last_login > 0)

Last logged in {{ Utils::timestampToDateTimeString(strtotime($client->last_login)); }}

@endif

Details

{{ $client->getAddress() }}

{{ $client->getPhone() }}

{{ $client->getNotes() }}

{{ $client->getIndustry() }}

{{ $client->getWebsite() }}

{{ $client->payment_terms ? "Payment terms: Net " . $client->payment_terms : '' }}

Contacts

@foreach ($client->contacts as $contact) {{ $contact->getDetails() }} @endforeach

Standing @if ($credit > 0) @endif
Paid to Date {{ Utils::formatMoney($client->paid_to_date, $client->currency_id); }}
Balance {{ Utils::formatMoney($client->balance, $client->currency_id); }}
Credit {{ Utils::formatMoney($credit, $client->currency_id); }}

 

{{ Datatable::table() ->addColumn('Date', 'Message', 'Balance', 'Adjustment') ->setUrl(url('api/activities/'. $client->public_id)) ->setOptions('sPaginationType', 'bootstrap') ->setOptions('bFilter', false) ->render('datatable') }}
@if ($hasRecurringInvoices) {{ Datatable::table() ->addColumn('How Often', 'Start Date', 'End Date', 'Invoice Total') ->setUrl(url('api/recurring_invoices/' . $client->public_id)) ->setOptions('sPaginationType', 'bootstrap') ->setOptions('bFilter', false) ->render('datatable') }} @endif {{ Datatable::table() ->addColumn('Invoice Number', 'Invoice Date', 'Invoice Total', 'Balance Due', 'Due Date', 'Status') ->setUrl(url('api/invoices/' . $client->public_id)) ->setOptions('sPaginationType', 'bootstrap') ->setOptions('bFilter', false) ->render('datatable') }}
{{ Datatable::table() ->addColumn('Invoice', 'Transaction Reference', 'Method', 'Payment Amount', 'Payment Date') ->setUrl(url('api/payments/' . $client->public_id)) ->setOptions('sPaginationType', 'bootstrap') ->setOptions('bFilter', false) ->render('datatable') }}
{{ Datatable::table() ->addColumn('Credit Amount', 'Credit Balance', 'Credit Date', 'Private Notes') ->setUrl(url('api/credits/' . $client->public_id)) ->setOptions('sPaginationType', 'bootstrap') ->setOptions('bFilter', false) ->render('datatable') }}
@stop