@extends('layouts.app') @section('content')

{{ $user->name }}


{{ __('Profile') }}

{{ __('Status: ') }} {{ $user->status === 1 ? 'Active' : 'Inactive' }}

{{ __('Company: ' . $user->profile->company) }}

{{ __('Email: ' . $user->email) }}

{{ __('Phone: ' . $user->profile->phone) }}

{{ __('Address: ' . $user->profile->address) }}

{{ __('Zip code: ' . $user->profile->zip) }}

{{ __('Country: ' . $user->profile->country) }}

{{ __('Billing history') }}


@foreach($user->resellerbills as $bill) @endforeach
{{ __('Amount') }} {{ __('From') }} {{ __('To') }}
{{ auth()->user()->currency . $bill->amount }} {{ $bill->start }} {{ $bill->end }}

{{ __('Payment history') }}


@foreach($user->resellerpayments as $pay) @endforeach
{{ __('Amount') }} {{ __('Note') }} {{ __('Payment method') }} {{ __('Created on') }}
{{ $pay->amount }} {{ $pay->note }} {{ $pay->payment_method }} {{ date('Y-m-d', strtotime($pay->created_at->tz(auth()->user()->timezone) )) }}
@endsection @section('scripts') @endsection