@extends('layouts.admin') @section('title', 'Billing Management') @section('content') @php $authCheck = auth()->check(); $permission= auth()->user(); @endphp
{{--
--}}
@foreach($billings as $key => $billing) @php $points = json_decode($billing->points); @endphp @endforeach
S.No. Plan Name Billing Period Amount Features Actions
{{ $key + 1 }} {{ $billing->name }} {{ $billing->interval }} {{ $billing->price }} @if(is_array($points))
    @foreach($points as $point)
  • {{ \Illuminate\Support\Str::limit($point->text,100) }} {{ $point->mark == 1 ? '' : '' }}
  • @endforeach
@else {{ $billing->points }} @endif
@if($authCheck && $permission->hasPermission('billing-edit')) @endif
@endsection