@extends('layouts.auth') @section('title', __('lang_v1.login')) @section('content')
@lang('lang_v1.login')
{{ csrf_field() }}
@php $username = old('username'); $password = null; if(config('app.env') == 'demo'){ $username = 'admin'; $password = '123456'; $demo_types = array( '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' ); if( !empty($_GET['demo_type']) && array_key_exists($_GET['demo_type'], $demo_types) ){ $username = $demo_types[$_GET['demo_type']]; } } @endphp @if ($errors->has('username')) {{ $errors->first('username') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if(config('app.env') != 'demo') @lang('lang_v1.forgot_your_password') @endif
@if(config('app.env') == 'demo')

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

@endif
@stop @section('javascript') @endsection