File manager - Edit - /var/www/payraty/accounting_main/resources/views/transfer/index.blade.php
Back
@extends('layouts.admin') {{-- @section('page-title') {{__('Bank Balance Transfer')}} @endsection --}} @section('breadcrumb') <li class="breadcrumb-item"><a href="{{ route('dashboard') }}">{{ __('Dashboard') }} </a></li> <li class="breadcrumb-item active">{{ __('Bank Balance Transfer') }}</li> @endsection @section('action-btn') <div class="float-end"> <!-- <a class="btn btn-sm btn-primary" data-bs-toggle="collapse" href="#multiCollapseExample1" role="button" aria-expanded="false" aria-controls="multiCollapseExample1" data-bs-toggle="tooltip" title="{{ __('Filter') }}"> <i class="ti ti-filter"></i> </a> --> {{-- <a href="#" data-url="{{ route('transfer.create') }}" data-ajax-popup="true" data-title="{{ __('Create Transfer') }}" data-bs-toggle="tooltip" title="{{ __('Create') }}" class="btn btn-sm btn-primary"> <i class="ti ti-plus"></i> </a> --}} <div class="d-flex justify-content-between"> <a href="#" data-url="{{ route('transfer.create') }}" data-ajax-popup="true" data-title="{{ __('Create Transfer') }}" data-bs-toggle="tooltip" title="{{ __('Create') }}" class="btn btn-outline-primary-dark d-flex align-items-center"> <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> <path d="M12 5V19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M5 12H19" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> </svg> <span class="ms-2">Add New Transfer</span> </a> </div> </div> </div> @endsection @section('content') <div class="row"> <div class="col-sm-12"> <div class=" multi-collapse mt-2 " id="multiCollapseExample1"> <div class="card"> <div class="card-body"> {{ Form::open(['route' => ['transfer.index'], 'method' => 'GET', 'id' => 'transfer_form']) }} <div class="d-flex align-items-center justify-content-end"> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12 mr-2"> <div class="btn-box"> {{ Form::label('date', __('Date'), ['class' => 'text-type']) }} {{ Form::text('date', isset($_GET['date']) ? $_GET['date'] : date('Y-m-d'), ['class' => 'form-control month-btn', 'id' => 'pc-daterangepicker-1', 'placeholder' => 'YYYY-MM-DD']) }} </div> </div> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12 mr-2"> <div class="btn-box"> {{ Form::label('f_account', __('From Account'), ['class' => 'text-type']) }} {{ Form::select('f_account', $account, isset($_GET['f_account']) ? $_GET['f_account'] : '', ['class' => 'form-control']) }} </div> </div> <div class="col-xl-3 col-lg-3 col-md-6 col-sm-12 col-12"> <div class="btn-box"> {{ Form::label('t_account', __('To Account'), ['class' => 'text-type']) }} {{ Form::select('t_account', $account, isset($_GET['t_account']) ? $_GET['t_account'] : '', ['class' => 'form-control']) }} </div> </div> <div class="col-auto float-end ms-2 mt-4"> <a href="#" class="btn btn-sm btn-primary" onclick="document.getElementById('transfer_form').submit(); return false;" data-bs-toggle="tooltip" title="Apply" data-original-title="{{ __('apply') }}"> <span class="btn-inner--icon"><i class="ti ti-search"></i></span> </a> <a href="{{ route('transfer.index') }}" class="btn btn-sm btn-danger" data-bs-toggle="tooltip" title="{{ __('Reset') }}"> <span class="btn-inner--icon"><i class="ti ti-refresh text-white-off "></i></span> </a> </div> </div> {{ Form::close() }} </div> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-body table-border-style"> <h5></h5> {{-- <div class="d-flex flex-row justify-content-between align-items-center margin-bottom-big"> <!-- All Employees Header --> <div class="flex-grow-1"> <h2 class="text-lg font-semibold text-primary">All Transfers</h2> </div> <!-- Search Input with Icon --> <div class="flex-grow-1 position-relative mt-4 mt-lg-0"> <div class="input-group" style="max-width: 400px;"> <span class="input-group-text bg-white border-0"> <i class="fas fa-calendar-alt text-secondary"></i> </span> <input type="date" class="form-control border-0 shadow-sm text-sm bg-white border-grey-light-300" placeholder="Select a date" /> </div> </div> <!-- Filters Dropdowns --> <div class="d-flex flex-lg-row flex-column justify-content-end align-items-lg-center align-items-start mt-4 mt-lg-0"> <!-- Pay Group Dropdown --> <div class="mb-3 mb-lg-0 me-lg-4" style="width: 150px;"> <select class="form-select bg-white" aria-label="Pay Group"> <option value="all" selected>Filter</option> <option value="monthly">Monthly</option> <option value="hourly">Hourly</option> </select> </div> <!-- Employment Status Dropdown --> <div class="mb-3 mb-lg-0" style="width: 150px;"> <select class="form-select bg-white" aria-label="Employment Status"> <option value="all" selected>Sort</option> <option value="full-time">New</option> <option value="part-time">Old</option> </select> </div> </div> </div> --}} <div class="table-responsive"> <table class="table"> <thead> <tr> <th> {{ __('Date') }}</th> <th> {{ __('From Account') }}</th> <th> {{ __('To Account') }}</th> <th> {{ __('Amount') }}</th> <th> {{ __('Reference') }}</th> <th> {{ __('Description') }}</th> @if (Gate::check('edit transfer') || Gate::check('delete transfer')) <th width="10%"> {{ __('Action') }}</th> @endif </tr> </thead> <tbody> @if ($transfers->isEmpty()) <tr> <td colspan="10" class="text-center"> <img src="{{ asset('assets/images/no-data.png') }}" alt="No Data" style="max-width: 350px; margin-bottom: 50px; margin-top: 150px;"> <p>{{ __('Oops, no transfers yet.') }}</p> <a href="#" data-url="{{ route('transfer.create') }}" data-ajax-popup="true" data-title="{{ __('Create Transfer') }}" data-bs-toggle="tooltip" title="{{ __('Create') }}" class="btn" style="background-color: #002C77; color: white;"> <i class="ti ti-plus"></i> <span class="ms-2">{{ __('Create New Transfer') }}</span> </a> </td> </tr> @else @foreach ($transfers as $transfer) <tr class="font-style"> <td>{{ \Auth::user()->dateFormat($transfer->date) }}</td> <td>{{ !empty($transfer->fromBankAccount()) ? $transfer->fromBankAccount()->bank_name . ' ' . $transfer->fromBankAccount()->holder_name : '' }} </td> <td>{{ !empty($transfer->toBankAccount()) ? $transfer->toBankAccount()->bank_name . ' ' . $transfer->toBankAccount()->holder_name : '' }} </td> <td>{{ \Auth::user()->priceFormat($transfer->amount) }}</td> <td>{{ $transfer->reference }}</td> <td>{{ $transfer->description }}</td> @if (Gate::check('edit transfer') || Gate::check('delete transfer')) <td class="Action"> <span> @can('edit transfer') <div class="action-btn bg-info ms-2"> <a href="#" class="mx-3 btn btn-sm align-items-center" data-url="{{ route('transfer.edit', $transfer->id) }}" data-ajax-popup="true" title="{{ __('Edit') }}" data-title="{{ __('Edit Transfer') }}" data-bs-toggle="tooltip" data-original-title="{{ __('Edit') }}"> <i class="ti ti-edit text-white"></i> </a> </div> @endcan @can('delete transfer') <div class="action-btn bg-danger ms-2"> {!! Form::open([ 'method' => 'DELETE', 'route' => ['transfer.destroy', $transfer->id], 'id' => 'delete-form-' . $transfer->id, ]) !!} <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" data-original-title="{{ __('Delete') }}" title="{{ __('Delete') }}" data-confirm="{{ __('Are You Sure?') . '|' . __('This action can not be undone. Do you want to continue?') }}" data-confirm-yes="document.getElementById('delete-form-{{ $transfer->id }}').submit();"> <i class="ti ti-trash text-white text-white"></i> </a> {!! Form::close() !!} </div> @endcan </span> </td> @endif </tr> @endforeach @endif </tbody> </table> </div> </div> </div> </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings