app/Http/Controllers/Admin/LanguagesController.php
// SHOW TABLE OF ALL WEBSITE LANGUAGES.
SHOW TABLE OF ALL WEBSITE LANGUAGES.
SHOW TABLE OF ALL WEBSITE LANGUAGES .
public function index()
    {
        try {
            $langs = Language::selection()->paginate(PAGINATION_COUNT);
            return view(
                'admin.languages.index',
                compact('langs')
            );
        } catch (\Throwable $th) {
            return redirect()->route('admin.dashboard')->with([
                'error' => 'Something went terribly wrong'
            ]);
        }
    }
public function index ( ) { try { $ langs = Language :: selection ( ) -> paginate ( PAGINATION_COUNT ) ; return view ( 'admin.languages.index' , compact ( 'langs' ) ) ; } catch ( \ Throwable $ th ) { return redirect ( ) -> route ( 'admin.dashboard' ) -> with ( [ 'error' => 'Something went terribly wrong' ] ) ; } }
SHOW TABLE OF ALL WEBSITE LANGUAGES.
SHOW TABLE OF ALL WEBSITE LANGUAGES .
// ALL LANGUAGES FROM DB // LANGUAGES MAIN TABLE VIEW. // REDIRCT TO ADMIN DASHBOARD WITH ERROR MESSAGE