@extends('layouts.app') @section('content') @php $currency = currency(); $base_currency = base_currency(); $date_format = get_company_option('date_format','Y-m-d'); @endphp
{{ _lang('Total Project') }}

{{ $total_project }}

{{ _lang('Invoice Value') }}

{{ decimalPlace($invoice_value->grand_total, $currency) }}

{{ _lang('Total Payment') }}

{{ decimalPlace($invoice_value->paid, $currency) }}

{{ _lang('Total Due') }}

{{ decimalPlace(($invoice_due_amount->grand_total - $invoice_due_amount->paid), $currency) }}

{{ _lang('Recent Projects') }}

@foreach($recent_projects as $project) @endforeach
{{ _lang('Name') }} {{ _lang('Start Date') }} {{ _lang('End Date') }} {{ _lang('Status') }} {{ _lang('Progress') }} {{ _lang('Action') }}
{{ $project->name }} {{ date($date_format,strtotime($project->start_date)) }} {{ date($date_format,strtotime($project->end_date)) }} {!! clean(project_status($project->status)) !!}
{{ $project->progress }}%

{{ _lang('Recent Invoices') }}

@php $date_format = get_option('date_format','Y-m-d'); @endphp @foreach($invoices as $invoice) @endforeach
{{ _lang('Invoice Number') }} {{ _lang('Business Name') }} {{ _lang('Due Date') }} {{ _lang('Grand Total') }} {{ _lang('Status') }} {{ _lang('View') }}
{{ $invoice->invoice_number }} {{ $invoice->client->company->business_name }} {{ date($date_format,strtotime($invoice->due_date)) }} {{ decimalPlace($invoice->grand_total, currency($company_currency[$invoice->company_id]), $invoice->client->currency) }} {!! clean(invoice_status($invoice->status)) !!} {{ _lang('View') }}

{{ _lang('Recent Transactions') }}

@foreach($transactions as $transaction) @endforeach
{{ _lang('Date') }} {{ _lang('Account') }} {{ _lang('Category') }} {{ _lang('DR/CR') }} {{ _lang('Amount') }} {{ _lang('Payment Method') }} {{ _lang('View Details') }}
{{ date($date_format,strtotime($transaction->trans_date)) }} {{ isset($transaction->account) ? $transaction->account->account_title : '' }} {{ isset($transaction->expense_type->name) ? $transaction->expense_type->name : _lang('Transfer') }} {{ $transaction->dr_cr == 'dr' ? _lang('CR') : _lang('DR') }} {{ decimalPlace($transaction->amount, currency($company_currency[$transaction->company_id]), $transaction->payer->currency) }} {{ isset($transaction->payment_method) ? $transaction->payment_method->name : '' }} {{ _lang('View') }}
@endsection