progress indicators, bug fixes, after a while
This commit is contained in:
80
resources/views/network_ops/partials/edit-finance.blade.php
Normal file
80
resources/views/network_ops/partials/edit-finance.blade.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<div class="modal fade" id="financePaymentsEditForm" tabindex="-1" role="dialog" aria-labelledby="paymentModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<!-- <h4 class="modal-title">Default Modal</h4> -->
|
||||
<h5 class="modal-title text-center" id="paymentModalLabelHeading">Update Payment Details</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form class="form-vertical" method="POST" id="financeEditForm" action="{{ url('mnos/finance_update') }}">
|
||||
{{ csrf_field() }}
|
||||
<input type="hidden" name="mno_id" id="mnoIdEdit" value="{{ $network_arr->id }}">
|
||||
<input type="hidden" name="payment_id" id="paymentIdEdit" value="">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label for="financeServicesEdit">Services *</label>
|
||||
{!! Form::select('services[]', $service_type_names , old('services'), ['class' => 'form-control' , 'id' => 'financeServicesEdit', 'required' => 'required', 'multiple'=> 'true', 'style' => 'width: 100%']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="invoiceNumberEdit">Invoice Number *</label>
|
||||
<input type="text" class="form-control" name="invoice_number" id="invoiceNumberEdit" required >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="invoiceAmountEdit">Invoice Amount</label>
|
||||
<input type="text" class="form-control" name="invoice_amount" id="invoiceAmountEdit" required >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<div class='input-group date' id='myDatepicker2' style="padding-bottom: 5px;">
|
||||
<label for="invoiceDateEdit">Invoice Date *</label>
|
||||
<input type="text" class="form-control" name="invoice_date" id="invoiceDateEdit" required >
|
||||
<div class="input-group-addon">
|
||||
<span class="fa fa-calendar"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12" style="padding-bottom: 5px">
|
||||
<label for="invoiceStatusEdit">Status *</label>
|
||||
{!! Form::select('invoice_status', [ 'PAID' => 'PAID', 'UNPAID' => 'UNPAID'] , old('services'), ['class' => 'form-control' , 'id' => 'invoiceStatusEdit', 'required' => 'required', 'placeholder' => '', 'style' => 'width: 100%']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="remarksEdit">Remarks</label>
|
||||
<input type="text" class="form-control" name="remarks" id="remarksEdit"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 0.2rem; padding-bottom: 5px; padding-top: 5px;">
|
||||
<div class="col-md-12" style="padding-bottom: 10px;">
|
||||
<button type="submit" class="btn btn-success btn-block updateBtn"> <i class="fa fa-send"></i> Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="margin-bottom: 0.5rem; padding-bottom: 5px; padding-top: 5px;">
|
||||
<div class="col-md-12">
|
||||
<button type="button" class="btn btn-dark btn-block" data-dismiss="modal"><i class="fa fa-close"></i> Close</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
81
resources/views/network_ops/partials/finance.blade.php
Normal file
81
resources/views/network_ops/partials/finance.blade.php
Normal file
@@ -0,0 +1,81 @@
|
||||
<div class="modal fade" id="financePaymentsForm" tabindex="-1" role="dialog" aria-labelledby="paymentModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title text-center" id="paymentModalLabelHeading">Payment Details</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="hidden" id="financeNotifyArea"></div>
|
||||
<form class="form-vertical" method="POST" id="financeForm" action="{{ url('mnos/finance_store') }}">
|
||||
{{ csrf_field() }}
|
||||
<input type="hidden" name="mno_id" id="mnoPaymentId" value="{{ $network_arr->id }}">
|
||||
<div class="row">
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<label for="financeServices">Services *</label>
|
||||
{!! Form::select('services[]', $service_type_names , old('services'), ['class' => 'form-control' , 'id' => 'financeServices', 'required' => 'required', 'multiple'=> 'true', 'style' => 'width: 100%']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="invoiceNumber">Invoice Number *</label>
|
||||
<input type="text" class="form-control" name="invoice_number" id="invoiceNumber" required >
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="invoiceAmount">Invoice Amount</label>
|
||||
<input type="text" class="form-control" name="invoice_amount" id="invoiceAmount" required >
|
||||
<div class="help-block text-warning">Enter Amount without commas</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12">
|
||||
<div class='input-group date' id='myDatepicker2' style="padding-bottom: 5px;">
|
||||
<label for="invoiceDate">Invoice Date *</label>
|
||||
<!-- <input type='text' class="form-control" /> -->
|
||||
<input type="text" class="form-control" name="invoice_date" id="invoiceDate" required >
|
||||
<div class="input-group-addon">
|
||||
<span class="fa fa-calendar"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-12" style="padding-bottom: 5px">
|
||||
<label for="invoiceStatus">Status *</label>
|
||||
{!! Form::select('invoice_status', [ 'PAID' => 'PAID', 'UNPAID' => 'UNPAID'] , old('services'), ['class' => 'form-control' , 'id' => 'invoiceStatus', 'required' => 'required', 'placeholder' => '', 'style' => 'width: 100%']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" >
|
||||
<div class="col-md-12" style="padding-bottom: 5px;">
|
||||
<label for="remarks">Remarks</label>
|
||||
<input type="text" class="form-control" name="remarks" id="remarks"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group" style="margin-bottom: 0.2rem; padding-bottom: 5px; padding-top: 5px;">
|
||||
<div class="col-md-12" style="padding-bottom: 10px;">
|
||||
<button type="submit" class="btn btn-success btn-block updateBtn"> <i class="fa fa-send"></i> Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="margin-bottom: 0.5rem; padding-bottom: 5px; padding-top: 5px;">
|
||||
<div class="col-md-12">
|
||||
<button type="button" class="btn btn-dark btn-block" data-dismiss="modal"><i class="fa fa-close"></i> Close</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
<!-- /.modal -->
|
||||
@@ -0,0 +1,43 @@
|
||||
<div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<a class="btn btn-danger btn-xs pull-right" id="addPaymentBtn" ><i class="fa fa-plus-circle"></i> Add Payments</a>
|
||||
<table class="table table-striped ">
|
||||
<thead>
|
||||
<tr class="headings">
|
||||
<th class="column-title">Invoice Number</th>
|
||||
<th class="column-title">Invoice Amount</th>
|
||||
<th class="column-title">Invoice Date</th>
|
||||
<th class="column-title">Services</th>
|
||||
<th class="column-title">Remarks</th>
|
||||
<th class="column-title">Status</th>
|
||||
<th class="column-title no-link last"><span class="nobr">Action</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if ($recent_payments->isEmpty())
|
||||
<tr>
|
||||
<td class="" colspan="12">No Records found</td>
|
||||
</tr>
|
||||
@else
|
||||
@foreach ( $recent_payments as $row)
|
||||
<tr class="even pointer">
|
||||
<td class="mes-td col-md-1">{{ $row->invoice_number }}</td>
|
||||
<td class="mes-td col-md-1">{{ $row->invoice_amount }}</td>
|
||||
<td class="mes-td col-md-2">{{ date('d-m-Y', strtotime($row->invoice_date)) }}</td>
|
||||
<td class="mes-td col-md-3">{{ $row->services }} </td>
|
||||
<td class="mes-td col-md-3" style="width: 100px;">{{ $row->remarks }}</td>
|
||||
<td class="mes-td col-md-1"><span class="label label-<?php echo ($row->invoice_status == 'PAID') ? 'success' : 'danger'; ?>"> {{ $row->invoice_status }}</span></td>
|
||||
<td class="last col-md-1" style="width: 100px;">
|
||||
<span>
|
||||
<input type="hidden" name="payment_entry_id" value="{{ $row->id }}" class="paymentEntryRowId">
|
||||
<a href="" class="btn btn-xs btn-primary paymentEntryEditBtn"><i class="fa fa-edit"></i></a>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user