/** * Handle the table columns. * * @param StateTableBuilder $builder */ public function handle(StateTableBuilder $builder) { $builder->setColumns(['name', 'iso', 'zone' => function (StateInterface $entry) { return $entry->getZoneName(); }, 'country' => function (StateInterface $entry) { return $entry->getCountryName(); }, 'entry.enabled.icon']); }
/** * Return an index of existing entries. * * @param StateTableBuilder $table * @return \Illuminate\View\View|\Symfony\Component\HttpFoundation\Response */ public function index(StateTableBuilder $table) { return $table->render(); }