@extends('layout.main') @section('content')

View Account
@if(User::checkCategoryPermission('Account','Edit')) Edit @endif Close

@include('includes.errors') @include('includes.success')

@include('accounts.errormessage') @if($outstanding>0)
Outstanding
Outstanding Amount - {{$currency}}{{$outstanding}}
@endif
Account Details
@if(count($account_owner)) {{$account_owner->FirstName}} {{$account_owner->LastName}} @endif
{{$account->Ownership}}
{{$account->Number}}
{{$account->Website}}
{{$account->AccountName}}
{{$account->Phone}}
@if($account->IsVendor == 1 ) Yes @else No @endif
{{$account->Fax}}
@if($account->IsCustomer == 1 ) Yes @else No @endif
{{$account->Employee}}
{{$account->Email}}
{{$account->SecondaryEmail}}
{{$account->BillingEmail}}
@if($account->Status == 1 ) Active @else Inactive @endif
{{$account->VatNumber}}
{{(Currency::getCurrency($account->CurrencyId))}}
{{$account->TimeZone}}
Description
{{$account->Description}}
@if(User::checkCategoryPermission('Account','Add')) @include('accountactivity.index') @endif @if(User::checkCategoryPermission('Account','Email')) @include('accountemaillog.index') @endif
Billing
{{ TaxRate::getTaxRate(AccountBilling::getTaxRate($account->AccountID))}}
@if(isset($AccountBilling->BillingType))
{{AccountApproval::$billing_type[$AccountBilling->BillingType]}}
@endif
{{AccountBilling::getBillingKey($AccountBilling,'BillingTimezone')}}
Address Information
{{$account->Address1}}
{{$account->City}}
{{$account->Address2}}
{{$account->PostCode}}
{{$account->Address3}}
{{$account->Country}}
Payment Information
{{$account->PaymentMethod}}
{{$account->PaymentDetail}}
Notes
@if(User::checkCategoryPermission('Account','Add'))
@endif
@if(count($notes)>0) @foreach($notes as $note) @endforeach @endif
Action Note
@if(User::checkCategoryPermission('Account','Edit')) @endif

{{$note->Note}}

{{$note->created_by}}   {{date( "d/m/Y H:i A", strtotime($note->created_at))}}
Contacts
@if(count($contacts)>0) @foreach($contacts as $contact) @endforeach @endif
Contact Name Phone Email Actions
{{$contact->NamePrefix}} {{$contact->FirstName}} {{$contact->LastName}} {{$contact->Phone}} {{$contact->Email}} @if(User::checkCategoryPermission('Contacts','Edit')) Edit @endif @if(User::checkCategoryPermission('Contacts','View')) View @endif @if($contact->IsVendor) Vendor @endif @if($contact->IsCustomer) Customer @endif
@if(User::checkCategoryPermission('Contacts','Add'))

$account->AccountID))}}" class="btn btn-primary "> Add New

@endif
@include('includes.submit_note_script',array("controller"=>"accounts")) @stop