Files

66 lines
3.0 KiB
PHP
Executable File

@extends('layouts.main')
@push('styles')
<link href="{{ asset('elite/bower_components/typeahead.js-master/dist/typehead-min.css') }}" rel="stylesheet">
@endpush
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">{{ __('discounts.patient_category_discounts') }}</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('home') }}"><i class="fa fa-home"></i> {{ __('discounts.home') }}</a></li>
<li><a href="{{ route('finance') }}"><i class="fa fa-money"></i> {{ __('discounts.finance_home') }}</a></li>
<li><a href="{{ route('discounts.index') }}"><i class="fa fa-eye"></i> {{ __('discounts.view_discounts') }}</a></li>
<li class="active"><i class="fa fa-trash"></i> {{ __('discounts.inactive_discounts') }}</li>
</ol>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="white-box">
@include('flash::message')
<div class="table-responsive">
<table class="table color-bordered-table success-bordered-table">
<thead>
<tr>
<th>{{ __('discounts.patient_category') }}</th>
<th>{{ __('discounts.discount') }}</th>
<th>{{ __('discounts.pay_late') }}</th>
<th class="text-center">{{ __('discounts.action') }}</th>
</tr>
</thead>
<tbody>
@if(count($discounts) > 0)
@foreach($discounts as $discount)
<tr>
<td>{{ $categories[$discount->patient_category] }}</td>
<td>{{ $discount->discount }}</td>
<td>{{ $discount->pay_later == 1 ? "Yes" : "No" }}</td>
<td>
{{ Form::model($discount->id ,['method' => 'POST', 'route' => ['discounts.activate', $discount->id]]) }}
<button type="submit" class="btn btn-warning" onclick="return confirm('Are you sure?')"><i class="fa fa-check"></i> Restore</button>
{{ Form::close() }}
</td>
</tr>
@endforeach
@else
<tr class="warning"><td class="center" colspan="5">{{ __('discounts.no_discounts_found') }}</td></tr>
@endif
</tbody>
</table>
</div>
{{ $discounts->links() }}
</div>
</div>
</div>
@endsection