ultimatepos/Modules/Accounting/Resources/views/holding/deferred_documents.blade.php

64 lines
3.4 KiB
PHP

@extends('layouts.app')
@section('title', __('accounting::lang.deferred_documents'))
@section('content')
@include('accounting::layouts.nav')
<section class="content-header"><h1>@lang('accounting::lang.deferred_documents')</h1></section>
<section class="content">
<div class="row">
<div class="col-md-3 col-sm-6">
<div class="info-box bg-yellow"><span class="info-box-icon"><i class="fa fa-money-check"></i></span>
<div class="info-box-content"><span class="info-box-text">@lang('accounting::lang.cheques')</span><span class="info-box-number">{{ $summary['cheques'] }}</span></div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="info-box bg-red"><span class="info-box-icon"><i class="fa fa-calendar"></i></span>
<div class="info-box-content"><span class="info-box-text">@lang('accounting::lang.installments')</span><span class="info-box-number">{{ $summary['installments'] }}</span></div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="info-box bg-aqua"><span class="info-box-icon"><i class="fa fa-file-invoice"></i></span>
<div class="info-box-content"><span class="info-box-text">@lang('sale.invoices')</span><span class="info-box-number">{{ $summary['invoices'] }}</span></div>
</div>
</div>
<div class="col-md-3 col-sm-6">
<div class="info-box bg-purple"><span class="info-box-icon"><i class="fa fa-book"></i></span>
<div class="info-box-content"><span class="info-box-text">@lang('accounting::lang.journal_entry')</span><span class="info-box-number">{{ $summary['journals'] }}</span></div>
</div>
</div>
</div>
<div class="box box-primary">
<div class="box-header with-border"><h3 class="box-title">@lang('accounting::lang.deferred_documents_list') ({{ $summary['total'] }})</h3></div>
<div class="box-body table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>@lang('sale.type')</th>
<th>@lang('accounting::lang.reference')</th>
<th>@lang('contact.contact')</th>
<th>@lang('sale.amount')</th>
<th>@lang('accounting::lang.due_date')</th>
<th>@lang('sale.status')</th>
<th>@lang('messages.action')</th>
</tr>
</thead>
<tbody>
@forelse($items as $item)
<tr>
<td>{{ $item['type_label'] }}</td>
<td>{{ $item['reference'] }}</td>
<td>{{ $item['party'] }}</td>
<td>{{ $item['amount'] !== null ? number_format($item['amount'], 2) : '-' }}</td>
<td>{{ $item['due_date'] ?: '-' }}</td>
<td>{{ $item['status'] }}</td>
<td><a href="{{ $item['url'] }}" class="btn btn-xs btn-primary">@lang('messages.view')</a></td>
</tr>
@empty
<tr><td colspan="7" class="text-center">@lang('accounting::lang.no_deferred_documents')</td></tr>
@endforelse
</tbody>
</table>
</div>
</div>
</section>
@endsection