@extends('admin.layouts.app') @section('title', 'Custom send SMS page') @push('styles') @endpush @section('admin_content') @php use App\Models\SmsLog; $totalSms = config('sms.total_sms_limit'); // Get limit from config $totalSendSms = SmsLog::sum('total_message'); // Total sent SMS (all) $totalSentSms = SmsLog::where('delivery_report', 'success')->sum('total_message'); // Successfully sent SMS $remainingSms = max(0, $totalSms - $totalSentSms); // Ensure remaining SMS is never negative @endphp

Custom SMS

@if (session('success')) @endif
  1. Total SMS: 2500   Total Send SMS: {{ $totalSendSms }}   {{-- Remaining SMS: {{ $remainingSms }} --}}

@csrf {{--
--}}

Total Characters:   Total Messages: Total Numbers:

@endsection @push('scripts') @endpush