@extends('frontend.template', ['title'=>'account']) @section('content') @if(session()->has('welcome'))
Welcome to Mr Wright, would you like to start by creating a ticket?
@endif
{{ csrf_field() }}
{{ $requester->username }}
Fill in password field only when you want to update the password
{{ Form::text('first_name', $requester->first_name, ['class'=>'form-control', 'maxlength'=>50]) }}
{{ Form::text('last_name', $requester->last_name, ['class'=>'form-control', 'maxlength'=>30]) }}
{{ Form::text('designation', $requester->designation, ['class'=>'form-control', 'maxlength'=>30]) }}
{{ Form::text('mobile', $requester->mobile, ['class'=>'form-control', 'maxlength'=>30]) }}
{{ Form::text('email', $requester->email, ['class'=>'form-control', 'maxlength'=>100]) }}
{{ $company->name }}
@if($requester->admin)
{{ $company->uen }}
@else
{{ $office->name }}
@endif
@if($requester->admin)
{{ Form::textarea('company_addr', $company->addr, ['rows'=>2, 'class'=>'form-control', 'maxlength'=>200]) }}
{{ Form::text('company_postal', $company->postal, ['class'=>'form-control', 'maxlength'=>20]) }}
{{ $company->membership_name }} @if($company->membership->position < MembershipPosition::$values[MembershipPosition::Platinum]) Upgrade @endif
{{ $company->requester_count }} / {{ $company->requester_limit }}
{{ MembershipType::$values[$company->membership_type] }}
@if($company->membership_valid_till) {{ ViewHelper::formatDate($company->membership_valid_till) }} @php $dayleft = Carbon::parse($company->membership_valid_till)->diffInDays(Carbon::now()); if (Carbon::parse($company->membership_valid_till)->gt(Carbon::now())){ echo '('.$dayleft.' days)'; } else{ $dayleft = 0; echo ' (expired)'; } @endphp @else - @endif
@else
{{ $office->addr }}
{{ $office->postal }}
@endif
@if($requester->admin)

Offices


@if($company->free_trial == false) Create Office

@endif @foreach($offices as $office) @endforeach
Office Name Address Postal Number of Requesters
office_id) }}">{{ $office->name }} {{ $office->addr }} {{ $office->postal }} {{ $office->requester_count }}
@endif
@if($company->membership->position < MembershipPosition::$values[MembershipPosition::Platinum]) @endif @endsection @section('script') @endsection