File manager - Edit - /var/www/payraty/accounting_main/resources/views/bankAccount/index.blade.php
Back
@extends('layouts.admin') {{-- @section('page-title') {{ __('Manage Bank Account') }} @endsection --}} @section('breadcrumb') <li class="breadcrumb-item"><a href="{{ route('dashboard') }}">{{ __('Dashboard') }} / </a></li> <li class="breadcrumb-item active">{{ __('Bank Account') }}</li> @endsection @section('action-btn') <div class="float-end"> {{-- <a href="#" data-url="{{ route('bank-account.create') }}" data-ajax-popup="true" data-size="lg" data-bs-toggle="tooltip" title="{{ __('Create') }}" data-title="{{ __('Create New Bank Account') }}" class="btn btn-sm btn-primary"> <i class="ti ti-plus"></i> </a> --}} <a href="#" data-url="{{ route('bank-account.create') }}" data-ajax-popup="true" data-size="lg" data-bs-toggle="tooltip" title="{{ __('Create') }}" data-title="{{ __('Create New Bank Account') }}" class="btn btn-outline-dark d-flex align-items-center"> <img src="{{ asset('assets/images/svg/plus.svg') }}" class="w-4 h-4" alt="Add New Bank Icon" /> <span class="ms-2">Add New Bank</span> </a> </div> @endsection @section('content') <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body table-border-style 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 Bank Accounts</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-search text-secondary"></i> </span> <input type="search" class="form-control border-0 shadow-sm text-sm bg-white border-grey-light-300" placeholder="Search by name, email or id..." /> </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>{{ __('Chart Of Account') }}</th> <th> {{ __('Name') }}</th> <th> {{ __('Bank') }}</th> <th> {{ __('Account Number') }}</th> <th> {{ __('Current Balance') }}</th> <th> {{ __('Contact Number') }}</th> <th> {{ __('Bank Branch') }}</th> @if (Gate::check('edit bank account') || Gate::check('delete bank account')) <th width="10%"> {{ __('Action') }}</th> @endif </tr> </thead> <tbody> @if ($accounts->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 bank accounts yet.') }}</p> <a href="#" data-url="{{ route('bank-account.create') }}" data-ajax-popup="true" data-size="lg" data-bs-toggle="tooltip" title="{{ __('Create') }}" data-title="{{ __('Create New Bank Account') }}" class="btn" style="background-color: #002C77; color: white;"> <i class="ti ti-plus"></i> <span class="ms-2">{{ __('Create New Bank Accounts') }}</span> </a> </td> </tr> @else @foreach ($accounts as $account) <tr class="font-style"> <td>{{ !empty($account->chartAccount) ? $account->chartAccount->name : '-' }} </td> <td>{{ $account->holder_name }}</td> <td>{{ $account->bank_name }}</td> <td>{{ $account->account_number }}</td> <td>{{ \Auth::user()->priceFormat($account->opening_balance ?? '-') }}</td> <td>{{ $account->contact_number ?? '-' }}</td> <td>{{ $account->bank_address ?? '-' }}</td> @if (Gate::check('edit bank account') || Gate::check('delete bank account')) <td class="Action"> <span> @if ($account->holder_name != 'Cash') @can('edit bank account') <div class="action-btn bg-info ms-2"> <a href="#" class="mx-3 btn btn-sm align-items-center" data-url="{{ route('bank-account.edit', $account->id) }}" data-ajax-popup="true" title="{{ __('Edit') }}" data-title="{{ __('Edit Bank Account') }}"data-bs-toggle="tooltip" data-size="lg" data-original-title="{{ __('Edit') }}"> <i class="ti ti-edit text-white"></i> </a> </div> @endcan @can('delete bank account') <div class="action-btn bg-danger ms-2"> {!! Form::open([ 'method' => 'DELETE', 'route' => ['bank-account.destroy', $account->id], 'id' => 'delete-form-' . $account->id, ]) !!} <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="{{ __('Delete') }}" data-original-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-{{ $account->id }}').submit();"> <i class="ti ti-trash text-white text-white"></i> </a> {!! Form::close() !!} </div> @endcan @else - @endif </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