@extends('layouts.admin') @section('title', ucfirst($section)) @section('content')

{{ $section === 'settings' ? 'Settings · SMS Gateway' : ucfirst($section) }}

@if(in_array($section,['customers','packages','routers']))+ Add {{ rtrim(ucfirst($section),'s') }}@endif
@if($section==='settings')
SMS Gateway Configuration

Select the provider driver and enter credentials supplied by your SMS vendor. Never share API secrets publicly.

@csrf @method('PUT')@php($values=$items->pluck('value','key'))
@foreach(['sms_api_url'=>'API URL','sms_api_key'=>'API Key','sms_api_secret'=>'API Secret','sms_sender_id'=>'Sender ID','sms_timeout'=>'Timeout (seconds)'] as $key=>$label)
@endforeach
Provider API payloads differ. Confirm the official vendor endpoint and request fields before enabling live SMS; test OTP delivery before production.
@else
@if($section==='customers')@elseif($section==='packages')@elseif($section==='routers')@else@endif@forelse($items as $item)@if($section==='customers')@elseif($section==='packages')@elseif($section==='routers')@else@endif@empty@endforelse
IDNamePhoneEmailStatusNamePriceDurationSpeed (down/up kbps)ActiveNameHostAPI PortAreaActiveOrderCustomer IDAmountProviderStatusPaid AtActions
{{ $item->id }}{{ $item->name ?: '—' }}{{ $item->phone }}{{ $item->email ?: '—' }}{{ $item->status }}{{ $item->name }}৳{{ number_format((float)$item->price,2) }}{{ $item->duration_value }} {{ $item->duration_unit }}{{ $item->download_speed_kbps??'∞' }} / {{ $item->upload_speed_kbps??'∞' }}{{ $item->is_active?'Yes':'No' }}{{ $item->name }}{{ $item->host }}{{ $item->api_port }}{{ $item->area ?: '—' }}{{ $item->is_active?'Yes':'No' }}{{ $item->order_id }}{{ $item->customer_id }}৳{{ number_format((float)$item->amount,2) }}{{ $item->provider }}{{ $item->status }}{{ $item->paid_at ?: '—' }}@if(in_array($section,['customers','packages','routers']))Edit
@csrf @method('DELETE')
@elseRead only@endif
No records found.
@if(method_exists($items,'links'))
{{ $items->links() }}
@endif @endif @endsection