63 lines
3.3 KiB
PHP
63 lines
3.3 KiB
PHP
@extends('layouts.app')
|
|
@section('title', __('accounting::lang.cheque_report'))
|
|
@section('content')
|
|
@include('accounting::layouts.nav')
|
|
<section class="content-header"><h1>@lang('accounting::lang.cheque_report')</h1></section>
|
|
<section class="content">
|
|
<div class="row">
|
|
@foreach($summary as $key => $row)
|
|
<div class="col-md-3 col-sm-6">
|
|
<div class="info-box">
|
|
<span class="info-box-icon bg-aqua"><i class="fa fa-money-check"></i></span>
|
|
<div class="info-box-content">
|
|
<span class="info-box-text">{{ $row['label'] }}</span>
|
|
<span class="info-box-number">{{ $row['count'] }} / {{ number_format($row['amount'], 2) }}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
<div class="box box-primary">
|
|
<div class="box-header with-border">
|
|
<form method="GET" class="form-inline">
|
|
{!! Form::select('direction', ['' => __('lang_v1.all'), 'received' => __('accounting::lang.received'), 'paid' => __('accounting::lang.paid')], request('direction'), ['class'=>'form-control']) !!}
|
|
{!! Form::select('status', ['' => __('lang_v1.all'), 'pending' => __('accounting::lang.pending'), 'deposited' => __('accounting::lang.deposited'), 'cleared' => __('accounting::lang.cleared'), 'bounced' => __('accounting::lang.bounced')], request('status'), ['class'=>'form-control','style'=>'margin:0 6px']) !!}
|
|
<button class="btn btn-primary btn-sm">@lang('report.filters')</button>
|
|
<a href="{{ route('accounting.cheques') }}" class="btn btn-default btn-sm">@lang('accounting::lang.cheques')</a>
|
|
</form>
|
|
</div>
|
|
<div class="box-body table-responsive">
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>@lang('accounting::lang.cheque_number')</th>
|
|
<th>@lang('sale.type')</th>
|
|
<th>@lang('accounting::lang.bank')</th>
|
|
<th>@lang('sale.amount')</th>
|
|
<th>@lang('accounting::lang.issue_date')</th>
|
|
<th>@lang('accounting::lang.due_date')</th>
|
|
<th>@lang('sale.status')</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($cheques as $cheque)
|
|
<tr>
|
|
<td>{{ $cheque->cheque_number }}</td>
|
|
<td>{{ $cheque->direction }}</td>
|
|
<td>{{ $cheque->bank_name }}</td>
|
|
<td>{{ number_format($cheque->amount, 2) }}</td>
|
|
<td>{{ optional($cheque->issue_date)->format('Y-m-d') }}</td>
|
|
<td>{{ optional($cheque->due_date)->format('Y-m-d') }}</td>
|
|
<td>{{ $cheque->status }}</td>
|
|
</tr>
|
|
@empty
|
|
<tr><td colspan="7" class="text-center">@lang('lang_v1.no_data')</td></tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
{{ $cheques->appends(request()->query())->links() }}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@endsection
|