@extends('layouts.master') @section('title') hotspot plans @endsection @section('css') @endsection @section('content') {{-- @component('components.breadcrumb') @slot('li_1') Hotspot @endslot @slot('title') Plans @endslot @endcomponent --}}

Plans

@if (session('status')) @endif @if (session('error'))
@endif
PLAN LIST
@if(count($plans))
@foreach($plans as $plan) @endforeach
ID Title Duration Price Usage Speed Limit Data Limit Created At Updated At Actions
{{$plan->id}} {{$plan->title}} {{ $plan->duration ? formatDuration($plan->duration) : '' }} Ksh {{$plan->price}} {{$plan->simultaneous_use_limit}} {{ $plan->speed_limit ? $plan->speed_limit . ' Mbps' : '' }} {{ $plan->data_limit ? formatSizeUnits($plan->data_limit) : '' }} {{$plan->created_at->format('d M Y H:i')}} {{$plan->updated_at->format('d M Y H:i')}}
@else
Sorry! No plan found
@endif
@endsection @section('script') @if (count($errors) > 0 && $errors->has('title') || $errors->has('duration') || $errors->has('duration_unit') || $errors->has('price')) @endif @endsection