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