@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
@if (config('app.env') == 'demo') @component('components.widget', [ 'class' => 'box-primary', 'header' => '

Demo Shops
Demos are for example purpose only, this application can be used in many other similar businesses.

Click button to login that business

', ])
Premium optional modules:

Connector Module / API Documentation @endcomponent @endif

@lang('lang_v1.welcome_back')

@lang('lang_v1.login_to_your') {{ config('app.name', 'ultimatePOS') }}

{{ csrf_field() }}
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if (!($request->segment(1) == 'business' && $request->segment(2) == 'register')) @if (config('constants.allow_registration')) {{ __('business.not_yet_registered') }} {{ __('business.register_now') }} @endif @endif
@stop @section('javascript') @endsection