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

36 lines
1.7 KiB
PHP

@extends('layouts.app')
@section('title', __('accounting::lang.journal_approvals'))
@section('content')
@include('accounting::layouts.nav')
<section class="content-header"><h1>@lang('accounting::lang.journal_approvals')</h1></section>
<section class="content">
<div class="box box-primary">
<div class="box-body table-responsive">
<table class="table table-bordered">
<thead><tr><th>@lang('accounting::lang.ref_no')</th><th>@lang('lang_v1.date')</th><th>@lang('purchase.note')</th><th>@lang('messages.action')</th></tr></thead>
<tbody>
@forelse($journals as $journal)
<tr>
<td>{{ $journal->ref_no }}</td>
<td>{{ $journal->operation_date }}</td>
<td>{{ $journal->note }}</td>
<td>
<form action="{{ route('accounting.approveJournal', $journal->id) }}" method="POST" style="display:inline">@csrf
<button class="btn btn-xs btn-success">@lang('accounting::lang.approve')</button>
</form>
<form action="{{ route('accounting.rejectJournal', $journal->id) }}" method="POST" style="display:inline">@csrf
<button class="btn btn-xs btn-danger">@lang('accounting::lang.reject')</button>
</form>
</td>
</tr>
@empty
<tr><td colspan="4">@lang('accounting::lang.no_pending_journals')</td></tr>
@endforelse
</tbody>
</table>
{{ $journals->links() }}
</div>
</div>
</section>
@endsection