44 lines
2.3 KiB
PHP
44 lines
2.3 KiB
PHP
@extends('layouts.app')
|
|
@section('title', __('accounting::lang.bank_reconciliation'))
|
|
@section('content')
|
|
@include('accounting::layouts.nav')
|
|
<section class="content-header"><h1>@lang('accounting::lang.bank_reconciliation')</h1></section>
|
|
<section class="content">
|
|
<div class="box box-primary">
|
|
<form action="{{ url('accounting/reconciliations') }}" method="POST" class="box-body">
|
|
@csrf
|
|
<div class="row">
|
|
<div class="col-md-3">{!! Form::select('accounting_account_id', $accounts, null, ['class'=>'form-control','placeholder'=>__('accounting::lang.bank_account'),'required']) !!}</div>
|
|
<div class="col-md-3"><input name="statement_date" type="date" class="form-control" required></div>
|
|
<div class="col-md-3"><input name="statement_balance" type="number" step="0.01" class="form-control" placeholder="@lang('accounting::lang.statement_balance')" required></div>
|
|
<div class="col-md-3"><button class="btn btn-primary">@lang('messages.save')</button></div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="box box-primary">
|
|
<div class="box-body table-responsive">
|
|
<table class="table table-bordered">
|
|
<thead><tr><th>#</th><th>@lang('accounting::lang.statement_date')</th><th>@lang('accounting::lang.statement_balance')</th><th>@lang('accounting::lang.book_balance')</th><th>@lang('sale.status')</th><th>@lang('messages.action')</th></tr></thead>
|
|
<tbody>
|
|
@foreach($reconciliations as $rec)
|
|
<tr>
|
|
<td>{{ $rec->id }}</td>
|
|
<td>{{ $rec->statement_date }}</td>
|
|
<td>@format_currency($rec->statement_balance)</td>
|
|
<td>@format_currency($rec->book_balance)</td>
|
|
<td>{{ $rec->status }}</td>
|
|
<td>
|
|
<a href="{{ action([\Modules\Accounting\Http\Controllers\ReconcileController::class, 'show'], $rec->id) }}" class="btn btn-xs btn-info">
|
|
@lang('messages.view')
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
{{ $reconciliations->links() }}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
@endsection
|