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

SSM ID : {{ $company->ssm_id }}

Company Information
Company Name
{{ $company->ssm_name ?: '-' }}
Business ID
{{ $company->business_id ?: '-' }}
Organization ID
{{ $company->organization_id ?: '-' }}

Address Information
Address
{{ $company->address1 }} @if ($company->address2) , {{ $company->address2 }} @endif @if ($company->address3) , {{ $company->address3 }} @endif
Postcode
{{ $company->postcode ?: '-' }}
City
{{ $company->city ?: '-' }}
State
{{ $company->state ?: '-' }}
Country
{{ $company->country ?: '-' }}

Company Wallet

@if ($companywallet) Wallet ID: {{ $companywallet->id ?: '-' }} @endif
@if ($companywallet)
Gold Balance (999)
{{ number_format((float) $companywallet->current_gold_gram_999, 4) }} g
Previous: {{ number_format((float) $companywallet->prev_gold_gram_999, 4) }} g
Gold Balance (916)
{{ number_format((float) $companywallet->current_gold_gram_916, 4) }} g
Previous: {{ number_format((float) $companywallet->prev_gold_gram_916, 4) }} g
Cash Balance
RM {{ number_format((float) $companywallet->current_cash_balance, 2) }}
Previous: RM {{ number_format((float) $companywallet->prev_cash_balance, 2) }}
@else

No wallet found for this company.

@endif

Company Files

@forelse ($companyfiles as $files) @empty @endforelse
Document Type File Last Updated Action
{{ $files->desc }} {{ $files->code }}
{{ $files->filename }}
{{ $files->updated_at }}
View
No files found.

Company Rep List

@forelse ($companyReps as $rep) @empty @endforelse
Rep ID Rep Name Rep Email Status Status Date Action
{{ $rep->rep_id }}
{{ $rep->rep_name }}
{{ $rep->rep_email }}
{{ $rep->status ? 'Active' : 'Inactive' }}
{{ $rep->status_datetime }}
@if ($rep->status != 1)
@else Approved @endif
No company reps found.

Company Transaction History

@forelse ($company_transactions as $trx) @empty @endforelse
Trx Ref Type Amount (RM) Weight (g) Payment Method Status Date
{{ $trx->trx_ref }}
{{ $trx->transaction_type ?: '-' }}
{{ number_format((float) $trx->trx_amount, 2) }}
{{ number_format((float) $trx->total_weight_gram, 4) }}
{{ $trx->payment_method ?: '-' }}
@php $trxStatusKey = strtolower($trx->transaction_status ?? ''); $trxStatusVariant = in_array($trxStatusKey, [ 'success', 'completed', 'approved', ]) ? 'success' : (in_array($trxStatusKey, [ 'failed', 'rejected', 'cancelled', ]) ? 'danger' : (in_array($trxStatusKey, [ 'pending', 'processing', ]) ? 'warning' : 'neutral')); @endphp {{ $trx->transaction_status ?? '-' }}
{{ $trx->created_at ? \Carbon\Carbon::parse($trx->created_at)->format('d M Y, h:i A') : '-' }}
No transactions found for this company.

@endsection @section('styles') @endsection @section('scripts') @endsection