migrate to gtea from bistbucket
This commit is contained in:
70
Modules/Business/resources/views/cheques/datas.blade.php
Normal file
70
Modules/Business/resources/views/cheques/datas.blade.php
Normal file
@@ -0,0 +1,70 @@
|
||||
<div class="responsive-table m-0">
|
||||
<table class="table" id="datatable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-60">
|
||||
<div class="d-flex align-items-center gap-3">
|
||||
<input type="checkbox" class="select-all-delete multi-delete">
|
||||
</div>
|
||||
</th>
|
||||
<th>{{ __('SL') }}.</th>
|
||||
<th>{{ __('Date') }}</th>
|
||||
<th>{{ __('Name') }}</th>
|
||||
<th>{{ __('Type') }}</th>
|
||||
<th>{{ __('Cheque Number') }}</th>
|
||||
<th>{{ __('Payment') }}</th>
|
||||
<th>{{ __('Amount') }}</th>
|
||||
<th>{{ __('Status') }}</th>
|
||||
<th class="text-center">{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($cheques as $cheque)
|
||||
<tr>
|
||||
<td class="w-60 checkbox">
|
||||
<input type="checkbox" name="ids[]" class="delete-checkbox-item multi-delete"
|
||||
value="{{ $cheque->id }}">
|
||||
</td>
|
||||
<td>{{ ($cheques->currentPage() - 1) * $cheques->perPage() + $loop->iteration }}</td>
|
||||
<td>{{ formatted_date($cheque->date) }}</td>
|
||||
<td>{{ $cheque->user?->name }}</td>
|
||||
<td>{{ ucwords(str_replace('_', ' ', $cheque->platform)) }}</td>
|
||||
<td>{{ $cheque->meta['cheque_number'] ?? '' }}</td>
|
||||
<td>{{ ucwords(str_replace('_', ' ', $cheque->transaction_type)) }}</td>
|
||||
<td>
|
||||
{{ currency_format($cheque->amount, currency: business_currency()) }}
|
||||
</td>
|
||||
<td class="{{ $cheque->type == 'pending' ? 'text-danger' : 'text-success' }}">
|
||||
{{ $cheque->type }}
|
||||
</td>
|
||||
<td>
|
||||
<div class="d-flex align-items-center gap-2 justify-content-center">
|
||||
@if (($cheque->type ?? '') == 'pending')
|
||||
<a type="button" class="add-order-btn rounded-2 btn btn-primary cheque-transfer-btn"
|
||||
data-bs-toggle="modal" data-bs-target="#deposit"
|
||||
data-received-from = "{{ $cheque->user?->name }}"
|
||||
data-transaction-id="{{ $cheque->id }}"
|
||||
data-cheque-amount = "{{ currency_format($cheque->amount, currency: business_currency()) }}"
|
||||
data-cheque-no = "{{ $cheque->meta['cheque_number'] ?? '' }}"
|
||||
data-cheque-date = "{{ formatted_date($cheque->date) }}"
|
||||
data-ref-no = "{{ $cheque->invoice_no }}">
|
||||
{{__('Deposit') }}
|
||||
</a>
|
||||
@else
|
||||
<a type="button" class="add-order-btn rounded-2 btn btn-primary reopen-btn"
|
||||
data-transaction-id="{{ $cheque->id }}">
|
||||
{{__('Re-Open') }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
{{ $cheques->links('vendor.pagination.bootstrap-5') }}
|
||||
</div>
|
||||
94
Modules/Business/resources/views/cheques/index.blade.php
Normal file
94
Modules/Business/resources/views/cheques/index.blade.php
Normal file
@@ -0,0 +1,94 @@
|
||||
@extends('layouts.business.master')
|
||||
|
||||
@section('title')
|
||||
{{ __('Cheques List') }}
|
||||
@endsection
|
||||
|
||||
@section('main_content')
|
||||
<div class="erp-table-section">
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-bodys">
|
||||
<div class="table-header p-16">
|
||||
<h4>{{ __('Cheques List') }}</h4>
|
||||
</div>
|
||||
<div class="table-top-form p-16-0">
|
||||
<form action="{{ route('business.cheques.index') }}" method="GET" class="filter-form" table="#cheques-data">
|
||||
|
||||
<div class="table-top-left d-flex gap-3 margin-l-16">
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="per_page" class="form-control">
|
||||
<option @selected(request('per_page') == 20) value="20">{{ __('Show 20') }}</option>
|
||||
<option @selected(request('per_page') == 50) value="50">{{ __('Show 50') }}</option>
|
||||
<option @selected(request('per_page') == 100) value="100">{{ __('Show 100') }}</option>
|
||||
<option @selected(request('per_page') == 500) value="500">{{ __('Show 500') }}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
<div class="table-search position-relative">
|
||||
<input type="text" name="search" class="form-control" placeholder="{{ __('Search...') }}" value="{{ request('search') }}">
|
||||
<span class="position-absolute">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M14.582 14.582L18.332 18.332" stroke="#4D4D4D" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M16.668 9.16797C16.668 5.02584 13.3101 1.66797 9.16797 1.66797C5.02584 1.66797 1.66797 5.02584 1.66797 9.16797C1.66797 13.3101 5.02584 16.668 9.16797 16.668C13.3101 16.668 16.668 13.3101 16.668 9.16797Z" stroke="#4D4D4D" stroke-width="1.25" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
<div class="custom-from-to align-items-center date-filters d-none">
|
||||
<label class="header-label">{{ __('From Date') }}</label>
|
||||
<input type="date" name="from_date" value="{{ request('from_date') ?? now()->format('Y-m-d') }}" class="form-control">
|
||||
</div>
|
||||
<div class="custom-from-to align-items-center date-filters d-none">
|
||||
<label class="header-label">{{ __('To Date') }}</label>
|
||||
<input type="date" name="to_date" value="{{ request('to_date') ?? now()->format('Y-m-d') }}" class="form-control">
|
||||
</div>
|
||||
<div class="gpt-up-down-arrow position-relative d-print-none custom-date-filter">
|
||||
<select name="custom_days" class="form-control custom-days">
|
||||
<option value="today" {{ request()->get('custom_days') == 'today' ? 'selected' : '' }}>{{ __('Today') }}</option>
|
||||
<option value="yesterday" {{ request()->get('custom_days') == 'yesterday' ? 'selected' : '' }}>{{ __('Yesterday') }}</option>
|
||||
<option value="last_seven_days" {{ request()->get('custom_days') == 'last_seven_days' ? 'selected' : '' }}>{{ __('Last 7 Days') }}</option>
|
||||
<option value="last_thirty_days" {{ request()->get('custom_days') == 'last_thirty_days' ? 'selected' : '' }}>{{ __('Last 30 Days') }}</option>
|
||||
<option value="current_month" {{ request()->get('custom_days') == 'current_month' ? 'selected' : '' }}>{{ __('Current Month') }}</option>
|
||||
<option value="last_month" {{ request()->get('custom_days') == 'last_month' ? 'selected' : '' }}>{{ __('Last Month') }}</option>
|
||||
<option value="current_year" {{ request()->get('custom_days') == 'current_year' ? 'selected' : '' }}>{{ __('Current Year') }}</option>
|
||||
<option value="custom_date" {{ request()->get('custom_days') == 'custom_date' ? 'selected' : '' }}>{{ __('Custom Date') }}</option>
|
||||
</select>
|
||||
<span></span>
|
||||
<div class="calendar-icon">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12.6667 2.67188H3.33333C2.59695 2.67188 2 3.26883 2 4.00521V13.3385C2 14.0749 2.59695 14.6719 3.33333 14.6719H12.6667C13.403 14.6719 14 14.0749 14 13.3385V4.00521C14 3.26883 13.403 2.67188 12.6667 2.67188Z" stroke="#4B5563" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M10.6641 1.32812V3.99479" stroke="#4B5563" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M5.33594 1.32812V3.99479" stroke="#4B5563" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<path d="M2 6.67188H14" stroke="#4B5563" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="delete-item delete-show d-none">
|
||||
<div class="delete-item-show">
|
||||
<p class="fw-bold"><span class="selected-count"></span> {{ __('items show') }}</p>
|
||||
<button data-bs-toggle="modal" class="trigger-modal" data-bs-target="#multi-delete-modal" data-url="{{ route('business.banks.delete-all') }}">{{ __('Delete') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="cheques-data">
|
||||
@include('business::cheques.datas')
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('modal')
|
||||
@include('business::cheques.modal.reopen')
|
||||
@include('business::cheques.modal.transfer')
|
||||
@endpush
|
||||
|
||||
@push('js')
|
||||
<script src="{{ asset('assets/js/custom/account.js') }}"></script>
|
||||
@endpush
|
||||
@@ -0,0 +1,34 @@
|
||||
<div class="modal fade common-validation-modal" id="reopen">
|
||||
<div class="modal-dialog modal-dialog-centered modal-md">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<form action="{{ route('business.cheques.reopen') }}" method="POST" class="ajaxform_instant_reload">
|
||||
@csrf
|
||||
<input type="hidden" name="transaction_id" id="reopen_transaction_id">
|
||||
<div class="modal-body">
|
||||
<div class="personal-info">
|
||||
<div class="row">
|
||||
<div class="d-flex justify-content-center">
|
||||
<p class="fs-5 text-black mt-5">
|
||||
{{ __('Are you sure you want to reopen this cheque?') }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div class="button-group text-center mt-5">
|
||||
<button type="button" data-bs-dismiss="modal" class="theme-btn border-btn m-2">
|
||||
{{ __('Close') }}
|
||||
</button>
|
||||
<button type="submit" class="theme-btn m-2 submit-btn">
|
||||
{{ __('Okay') }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,65 @@
|
||||
<div class="modal fade common-validation-modal" id="deposit">
|
||||
<div class="modal-dialog modal-dialog-centered modal-md">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h1 class="modal-title fs-5">{{__('Transfer Cheque') }}</h1>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="personal-info">
|
||||
<form action="" method="post" class="ajaxform_instant_reload">
|
||||
@csrf
|
||||
|
||||
<input type="hidden" name="transaction_id" id="deposit_transaction_id">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-12 order-form-section">
|
||||
<div class="costing-list">
|
||||
<ul>
|
||||
<li><span>{{ __('Received From') }}</span> <span>:</span> <span id="received_from"></span></li>
|
||||
<li><span>{{ __('Cheque Amount') }}</span> <span>:</span> <span id="cheque_amount"></span></li>
|
||||
<li><span>{{ __('Cheque Number') }}</span> <span>:</span> <span id="cheque_no"></span></li>
|
||||
<li><span>{{ __('Cheque Date') }}</span> <span>:</span> <span id="cheque_date"></span></li>
|
||||
<li><span>{{ __('Reference No') }}</span> <span>:</span> <span id="ref_no"></span></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 mb-2">
|
||||
<label>{{ __('Deposit To') }}</label>
|
||||
<div class="gpt-up-down-arrow position-relative">
|
||||
<select name="payment_type" class="form-control table-select w-100" required>
|
||||
<option value=""> {{ __('Select one') }}</option>
|
||||
<option value="cash">{{ __('Cash') }}</option>
|
||||
@foreach ($banks as $bank)
|
||||
<option value="{{ $bank->id }}">{{ $bank->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<label>{{__('Transfer Date')}}</label>
|
||||
<input type="date" name="date" class="form-control" value="{{ now()->format('Y-m-d') }}">
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12 mb-2">
|
||||
<label>{{__('Description')}}</label>
|
||||
<textarea name="note" class="form-control" placeholder="Enter description"></textarea>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-lg-12">
|
||||
<div class="button-group text-center mt-5">
|
||||
<button type="reset" class="theme-btn border-btn m-2">{{__('Reset') }}</button>
|
||||
<button type="submit" class="theme-btn m-2 submit-btn">{{__('Send') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user