ok

Mini Shell

Direktori : /home2/selectio/www/billingsoftwarenew/core/resources/views/admin/plans/loan/
Upload File :
Current File : /home2/selectio/www/billingsoftwarenew/core/resources/views/admin/plans/loan/index.blade.php

@extends('admin.layouts.app')
@section('panel')
    <div class="row">
        <div class="col-lg-12">
            <div class="card  b-radius--10">
                <div class="card-body p-0">
                    <div class="table-responsive--md table-responsive">
                        <table class="table table--light style--two">
                            <thead>
                                <tr>
                                    <th>@lang('S.N.')</th>
                                    <th>@lang('Plan')</th>
                                    <th>@lang('Limit')</th>
                                    <th>@lang('Installment')</th>
                                    <th>@lang('Status')</th>
                                    <th>@lang('Action')</th>
                                </tr>
                            </thead>
                            <tbody>
                                @forelse($plans as $plan)
                                    <tr>
                                        <td>{{ __($loop->index + $plans->firstItem()) }}</td>

                                        <td>
                                            <span class="fw-bold text--primary">{{ __($plan->name) }}</span>
                                            <br>
                                            @lang('For')
                                            <span class="fw-bold">
                                                {{ $plan->total_installment * $plan->installment_interval }}
                                            </span>
                                            @lang('days')
                                        </td>

                                        <td>
                                            <span class="fw-bold">@lang('Min'):</span> {{ $general->cur_sym . showAmount($plan->minimum_amount) }}
                                            <br>
                                            <span class="fw-bold">@lang('Max'):</span> {{ $general->cur_sym . showAmount($plan->maximum_amount) }}
                                        </td>

                                        <td>
                                            <span class="text--primary">{{ $plan->per_installment + 0 }}%</span>
                                            @lang('every')
                                            <span class="text--primary">{{ $plan->installment_interval }}</span> @lang('Days')
                                            <br>
                                            @lang('for') <span class="text--primary">{{ $plan->total_installment }}</span>
                                            @lang('Times')
                                        </td>

                                        <td> @php echo $plan->statusBadge; @endphp </td>

                                        <td>
                                            <div class="button--group">
                                                <a href="{{ route('admin.plans.loan.edit', $plan->id) }}" class="btn btn-sm btn-outline--primary">
                                                    <i class="la la-pencil"></i>@lang('Edit')
                                                </a>

                                                @if ($plan->status)
                                                    <button type="button" data-action="{{ route('admin.plans.loan.status', $plan->id) }}" data-question="@lang('Are you sure to disable this plan?')" class="btn btn-sm confirmationBtn btn-outline--danger">
                                                        <i class="la la-la la-eye-slash"></i>@lang('Disable')
                                                    </button>
                                                @else
                                                    <button type="button" data-action="{{ route('admin.plans.loan.status', $plan->id) }}" data-question="@lang('Are you sure to enable this plan?')" class="btn btn-sm confirmationBtn btn-outline--success">
                                                        <i class="la la-la la-eye"></i>@lang('Enable')
                                                    </button>
                                                @endif
                                            </div>
                                        </td>
                                    </tr>
                                @empty
                                    <tr>
                                        <td class="text-muted text-center" colspan="100%">{{ __($emptyMessage) }}</td>
                                    </tr>
                                @endforelse
                            </tbody>
                        </table>
                    </div>
                </div>
                @if ($plans->hasPages())
                    <div class="card-footer py-4">
                        {{ paginateLinks($plans) }}
                    </div>
                @endif
            </div>
        </div>
    </div>
    <x-confirmation-modal />
@endsection

@push('breadcrumb-plugins')
    <a href="{{ route('admin.plans.loan.create') }}" class="btn btn-sm btn-outline--primary">
        <i class="la la-plus"></i> @lang('Add New')
    </a>
@endpush

Zerion Mini Shell 1.0