92 lines
4.0 KiB
PHP
92 lines
4.0 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') #{{ $reconciliation->id }}</h1>
|
|
<a href="{{ route('accounting.reconciliations') }}" class="btn btn-default btn-sm">@lang('messages.back')</a>
|
|
</section>
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="box box-primary">
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<div class="col-sm-3">
|
|
<strong>@lang('accounting::lang.statement_date')</strong><br>
|
|
{{ optional($reconciliation->statement_date)->format('Y-m-d') }}
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<strong>@lang('accounting::lang.statement_balance')</strong><br>
|
|
@format_currency($reconciliation->statement_balance)
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<strong>@lang('accounting::lang.book_balance')</strong><br>
|
|
@format_currency($reconciliation->book_balance)
|
|
</div>
|
|
<div class="col-sm-3">
|
|
<strong>@lang('sale.status')</strong><br>
|
|
{{ $reconciliation->status }}
|
|
</div>
|
|
</div>
|
|
@if(!empty($reconciliation->note))
|
|
<p style="margin-top:12px;"><strong>@lang('purchase.note'):</strong> {{ $reconciliation->note }}</p>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@if($reconciliation->status !== 'completed')
|
|
<form action="{{ action([\Modules\Accounting\Http\Controllers\ReconcileController::class, 'update'], $reconciliation->id) }}" method="POST">
|
|
@csrf
|
|
@method('PUT')
|
|
@endif
|
|
|
|
<div class="box box-primary">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">@lang('accounting::lang.gl_transactions')</h3>
|
|
</div>
|
|
<div class="box-body table-responsive">
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
@if($reconciliation->status !== 'completed')
|
|
<th>@lang('accounting::lang.matched')</th>
|
|
@endif
|
|
<th>@lang('sale.amount')</th>
|
|
<th>@lang('purchase.note')</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse($reconciliation->items as $item)
|
|
<tr>
|
|
@if($reconciliation->status !== 'completed')
|
|
<td>
|
|
<input type="checkbox" name="matched_items[]" value="{{ $item->id }}" {{ $item->is_matched ? 'checked' : '' }}>
|
|
</td>
|
|
@endif
|
|
<td>@format_currency($item->amount)</td>
|
|
<td>{{ $item->description ?: '-' }}</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="{{ $reconciliation->status !== 'completed' ? 3 : 2 }}" class="text-center">@lang('accounting::lang.no_data')</td>
|
|
</tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
@if($reconciliation->status !== 'completed')
|
|
<div class="box-footer">
|
|
<button type="submit" class="btn btn-primary">@lang('accounting::lang.complete_reconciliation')</button>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
|
|
@if($reconciliation->status !== 'completed')
|
|
</form>
|
|
@endif
|
|
</section>
|
|
@endsection
|