@extends('layouts.app') @section('title', 'Agent Details') @section('content')
Name
{{ $agent->name }}
Phone
{{ $agent->phone ?? '-' }}
{{ $agent->email ?? '-' }}
Status
{{ ucfirst($agent->status) }}Address
{{ $agent->address ?? '-' }}
Rp {{ number_format($agent->balance ?? 0, 0, ',', '.') }}
| Date | Type | Amount | Description |
|---|---|---|---|
| {{ $transaction->created_at->format('d M Y H:i') }} | {{ ucfirst($transaction->type) }} | {{ $transaction->type === 'credit' ? '+' : '-' }} Rp {{ number_format($transaction->amount, 0, ',', '.') }} | {{ $transaction->description ?? '-' }} |
| No transactions yet | |||