@extends('front.v2.partials.master') @section('content') {{----}}

{{ $userDetails->full_name }} {{ $userDetails->surname }} @if ($userDetails->company_name) ({{ $userDetails->company_name }}) @endif @if($userDetails->idp_id != "") @endif

@if($userDetails->idp_id == "") @endif Logg ut
@if(function_exists('alertMessage')) {!! alertMessage() !!} @endif

{{ __('v2/front_site.personal_details') }}

{!! Form::open(['route' => 'front.v2.edit-profile', 'method' => 'POST', 'class' => 'row g-3', 'id' => 'dySave']) !!}
@if($userDetails->user_type == 2)
@endif
{!! __('v2/front_site.update_phone') !!}
{!! $userDetails->dial_code !!}
{!! __('v2/front_site.update_email') !!}
@if($userDetails->user_type == 1 && $userDetails->is_student == 0)
@endif {!! Form::token() !!}
{!! Form::close() !!}

{{ __('v2/front_site.order_history') }}

{{ __('v2/front_site.order_id') }} {{ __('v2/front_site.date') }} {{ __('v2/front_site.status') }} {{ __('v2/front_site.total') }} {{ __('v2/front_site.action') }}
@if($userDetails->user_type == 2)

{{ __('v2/front_site.generated_invoice') }}

{{-- --}} {{-- --}} {{-- --}}
{{ __('common.sr-no') }}{{ __('v2/front_site.invoice_no') }} {{ __('v2/front_site.invoice_date') }}{{ __('v2/front_site.created_by') }}{{ __('v2/front_site.created_at') }}{{ __('v2/front_site.action') }}
@endif

{{ __('v2/front_site.addresses') }}

@if (count($address) > 0) @php $i = 1; @endphp @foreach ($address as $addresses)
@endforeach @endif

{{ __('v2/front_site.gift_cards') }}

{!! Form::open(array('route' => 'front.v2.redeem-code', 'method' => 'POST' ,'id' => 'redeem-gift-card')) !!}
{!! Form::text('redeem_code',null,['class' => 'form-control' ,'placeholder' => __('v2/front_site.gift_card_code')]) !!}
{!! Form::close() !!} @if (session('giftcard_order_message'))
{{ session('giftcard_order_message') }}
@php session()->forget(['giftcard_order_message','gift_card_payment_status' ]); @endphp @endif

{!! __('v2/front_site.current_balance') !!} : {!! numberFormat($giftCardBalance) !!}

{!! __('v2/front_site.purchased_gift_cards') !!}

{{ __('v2/front_site.created_at') }} {{ __('v2/front_site.gift_card_amount') }} {{ __('v2/front_site.gift_card_code') }} {{ __('v2/front_site.redeem_date') }} {{ __('v2/front_site.share') }}

{!! __('v2/front_site.gift_cards_usage') !!}

{{ __('v2/front_site.created_at') }} {{ __('v2/front_site.order') }} {{ __('v2/front_site.action') }} {{ __('v2/front_site.gift_card_amount') }}
@if($userDetails->user_type == 2)

{{ __('v2/front_site.employees') }}

{!! Form::open(array('route' => 'front.v2.invite-employee', 'method' => 'POST' ,'id' => 'dySave')) !!}
{!! Form::text('email',null,['class' => 'form-control' ,'placeholder' => __('v2/front_site.employee_email')]) !!}
{!! Form::select('payable_category_id',['' => 'Select category'] + $companyCategory,'',['class' => 'form-select ' ]) !!}
{!! Form::close() !!}
{{----}}
{{ __('users.name') }} {{ __('users.email') }}{{ __('users.invite_date') }}{{ __('common.category') }} {{ __('common.status') }} {{ __('common.action') }}

{{ __('v2/front_site.company_category') }}

{{ __('v2/front_site.name') }} {{ __('v2/front_site.company_payable_percentage') }} {{ __('v2/front_site.employee_payable_percentage') }} {{ __('v2/front_site.action') }}
@endif

{{ __('v2/front_site.favorite_items') }}

@if (count($favoriteItems) > 0)
@foreach ($favoriteItems as $row)
{!! numberFormat($row->offer_price, false, true, 0) !!}

{!! $row->description !!}

@endforeach
@else

{{ __('v2/front_site.no_record_found') }}

@endif

{{ __('v2/front_site.favorite_stores') }}