@extends('frontend.layout') @section('content')
@if(Session::has('success'))
{{ Session::get('success') }} @php Session::forget('success'); @endphp
@endif @if(Session::has('error'))
{{ Session::get('error') }} @php Session::forget('error'); @endphp
@endif @if(Session::has('errors'))
{{ 'Có lỗi xảy ra'}} @php Session::forget('errors'); @endphp
@endif
@if (Auth::check())
Cập nhật thông tin cá nhân
{{ csrf_field() }}
@php $name = Auth::user()->name ?? ''; if (old('name') != '') { $name = old('name'); } @endphp @if ($errors->has('name')) {{ $errors->first('name') }} @endif
@php $phone = Auth::user()->phone ?? ''; if (old('phone') != '') { $phone = old('phone'); } @endphp @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@php $user_email = Auth::user()->user_email ?? ''; if (old('user_email') != '') { $user_email = old('user_email'); } @endphp @if ($errors->has('user_email')) {{ $errors->first('user_email') }} @endif
@php $birth_year = Auth::user()->birth_year ?? ''; if (old('birth_year') != '') { $birth_year = old('birth_year'); } @endphp @if ($errors->has('birth_year')) {{ $errors->first('birth_year') }} @endif
@php $address = Auth::user()->address ?? ''; if (old('address') != '') { $address = old('address'); } @endphp @if ($errors->has('address')) {{ $errors->first('address') }} @endif
@php $known_sis = old('known_sis', Auth::user()->known_sis ?? ''); @endphp
@if ($errors->has('known_sis')) {{ $errors->first('known_sis') }} @endif
@php $job = Auth::user()->job ?? ''; if (old('job') != '') { $job = old('job'); } @endphp @if ($errors->has('job')) {{ $errors->first('job') }} @endif
Đăng xuất
@else
Nhập thông tin cá nhân
(*) Nhập thông tin cá nhân trước khi quay số
{{ csrf_field() }}
@php $name = ''; if (old('name') != '') { $name = old('name'); } @endphp @if ($errors->has('name')) {{ $errors->first('name') }} @endif
@php $phone = ''; if (old('phone') != '') { $phone = old('phone'); } @endphp @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@php $user_email = ''; if (old('user_email') != '') { $user_email = old('user_email'); } @endphp @if ($errors->has('user_email')) {{ $errors->first('user_email') }} @endif
@php $birth_year = ''; if (old('birth_year') != '') { $birth_year = old('birth_year'); } @endphp @if ($errors->has('birth_year')) {{ $errors->first('birth_year') }} @endif
@php $address = ''; if (old('address') != '') { $address = old('address'); } @endphp @if ($errors->has('address')) {{ $errors->first('address') }} @endif
@php $known_sis = old('known_sis', ''); @endphp
@if ($errors->has('known_sis')) {{ $errors->first('known_sis') }} @endif
@php $job = ''; if (old('job') != '') { $job = old('job'); } @endphp @if ($errors->has('job')) {{ $errors->first('job') }} @endif
@endif
Quay lại chức năng quay số
LỊCH SỬ HOẠT ĐỘNG
    @if (isset($history_data)) @foreach ($history_data as $history_item)
  • Trúng thưởng {{ $history_item->prize_name ?? '' }} vào lúc {{ date_format(date_create($history_item->created_at), "d/m/Y H:i") }}
  • @endforeach @endif
@endsection