@extends('layouts.app') @section('title', $title) @push('styles') @endpush @section('content')

{{ $title }}

{{ __('Manage package details, price and availability.') }}

@can($permissionPrefix . '.create') {{ __('Add Package') }} @endcan
{{ __('Search') }}
{{ __('Clear') }}
@forelse($packages as $package) @empty @endforelse
{{ __('Code') }} {{ __('Package') }} {{ __('Duration') }} {{ __('Price') }} {{ __('Status') }} {{ __('Actions') }}
{{ $package->code }} {{ $package->name }}
{{ \Illuminate\Support\Str::limit($package->description, 90) }}
{{ $package->duration_days ? $package->duration_days . ' ' . __('days') : '—' }} {{ $package->currency }} {{ number_format((float) $package->price, 2) }} {{ $package->is_active ? __('Active') : __('Inactive') }} @can($permissionPrefix . '.edit') {{ __('Edit') }} @endcan @can($permissionPrefix . '.delete') {{-- ✅ SweetAlert2 ট্রিগার করার জন্য বাটন --}} {{ __('Delete') }} @endcan
{{ __('No packages found.') }}
{{-- ✅ Custom Pagination --}}
Showing {{ $packages->firstItem() ?? 0 }}–{{ $packages->lastItem() ?? 0 }} of {{ $packages->total() }} results
{{ $packages->appends(request()->query())->links('pagination::bootstrap-5') }}
{{-- ✅ ডিলিট করার জন্য হিডেন ফর্ম --}} @endsection @push('scripts') {{-- SweetAlert2 CDN --}} @endpush