@extends('layouts.auth2') @section('title', __('lang_v1.login')) @inject('request', 'Illuminate\Http\Request') @section('content') @php $username = old('username'); $password = null; if (config('app.env') == 'demo') { $username = 'admin'; $password = '123456'; $demo_types = [ 'all_in_one' => 'admin', 'super_market' => 'admin', 'pharmacy' => 'admin-pharmacy', 'electronics' => 'admin-electronics', 'services' => 'admin-services', 'restaurant' => 'admin-restaurant', 'superadmin' => 'superadmin', 'woocommerce' => 'woocommerce_user', 'essentials' => 'admin-essentials', 'manufacturing' => 'manufacturer-demo', ]; if (!empty($_GET['demo_type']) && array_key_exists($_GET['demo_type'], $demo_types)) { $username = $demo_types[$_GET['demo_type']]; } } @endphp