| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function render() |
||
| 34 | { |
||
| 35 | $subscriptions = collect(PaystackSubscriptionsStore::make()->getData()); |
||
| 36 | $paginator = $this->getPaginator($subscriptions); |
||
| 37 | |||
| 38 | return view('dashboard-paystack-subscriptions-tile::tile', [ |
||
| 39 | 'subscriptions' => $subscriptions->skip(($paginator->firstItem() ?? 1) - 1)->take($paginator->perPage()), |
||
| 40 | 'paginator' => $paginator, |
||
| 41 | 'refreshIntervalInSeconds' => $this->refreshInSeconds ?? config('dashboard.tiles.paystack.subscriptions.refresh_interval_in_seconds') ?? 1800, |
||
| 42 | ]); |
||
| 55 |