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

53 lines
3.1 KiB
PHP

@extends('layouts.app')
@section('title', __('accounting::lang.payroll_tax_table'))
@section('content')
@include('accounting::layouts.nav')
<section class="content-header"><h1>@lang('accounting::lang.payroll_tax_table')</h1></section>
<section class="content">
<div class="box box-primary">
<form action="{{ route('accounting.storePayrollTaxBracket') }}" method="POST" class="box-body">
@csrf
<div class="row">
<div class="col-md-2"><input name="name" class="form-control" placeholder="@lang('accounting::lang.bracket_name')" required></div>
<div class="col-md-2"><input name="min_amount" type="number" step="0.01" class="form-control" placeholder="@lang('accounting::lang.min_amount')" required></div>
<div class="col-md-2"><input name="max_amount" type="number" step="0.01" class="form-control" placeholder="@lang('accounting::lang.max_amount')"></div>
<div class="col-md-2"><input name="rate_percent" type="number" step="0.01" class="form-control" placeholder="@lang('accounting::lang.rate_percent')" required></div>
<div class="col-md-2"><input name="fixed_deduction" type="number" step="0.01" class="form-control" placeholder="@lang('accounting::lang.fixed_deduction')"></div>
<div class="col-md-1"><input name="sort_order" type="number" class="form-control" placeholder="#" value="0"></div>
<div class="col-md-1"><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>@lang('accounting::lang.bracket_name')</th>
<th>@lang('accounting::lang.min_amount')</th>
<th>@lang('accounting::lang.max_amount')</th>
<th>@lang('accounting::lang.rate_percent')</th>
<th>@lang('accounting::lang.fixed_deduction')</th>
<th>@lang('sale.status')</th>
</tr>
</thead>
<tbody>
@forelse($brackets as $bracket)
<tr>
<td>{{ $bracket->name }}</td>
<td>{{ number_format($bracket->min_amount, 2) }}</td>
<td>{{ $bracket->max_amount !== null ? number_format($bracket->max_amount, 2) : '∞' }}</td>
<td>{{ $bracket->rate_percent }}%</td>
<td>{{ number_format($bracket->fixed_deduction, 2) }}</td>
<td>{{ $bracket->is_active ? __('business.is_active') : __('lang_v1.inactive') }}</td>
</tr>
@empty
<tr><td colspan="6" class="text-center">@lang('lang_v1.no_data')</td></tr>
@endforelse
</tbody>
</table>
</div>
</div>
</section>
@endsection