@extends('layouts.app') @section('content')
{{ __('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) }}
{{ __('Package information') }}
{{ __('Name: ' . $user->package->packageDetail->title) }}
{{ __('Type: ') }}{{ $user->package->packageDetail->package->type === 1 ? 'PPoE' : 'HotSpot' }}
{{ __('Price: ' . auth()->user()->currency . $user->package->packageDetail->amount) }}
{{ __('Billing') }}
{{ __('Total bill: ' . auth()->user()->currency . $user->bills->sum('amount')) }}
{{ __('Total payment: ' . auth()->user()->currency . $user->payments->sum('amount')) }}
@if($user->bills->sum('amount') >= $user->payments->sum('amount')) {{ __('Due: ' . auth()->user()->currency . ($user->bills->sum('amount') - $user->payments->sum('amount'))) }}{{ __('(due)') }} @else {{ __('Due: ' . auth()->user()->currency . ($user->payments->sum('amount') - $user->bills->sum('amount'))) }}{{ __('(advanced)') }} @endif
{{ __('Amount') }} | {{ __('From') }} | {{ __('To') }} | {{ __('Package') }} | {{ __('Package type') }} |
---|---|---|---|---|
{{ auth()->user()->currency . $bill->amount }} | {{ $bill->start }} | {{ $bill->end }} | {{ $bill->package }} | {{ $bill->package_type }} |
{{ __('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) )) }} |