@extends('layouts.admin.app') @section('title', __('trans.student.wallet.label') . ' [ ' . $student->name . ' ]') @section('content')

{{ __('trans.student.wallet_balance') }}

{{ number_format($student->wallet_balance, 2) }}

{{ __('trans.student.wallet.add_transaction') }}

@csrf

{{ __('trans.student.wallet.title') }} - {{ $student->name }} ({{ $student->phone }})

{{ __('trans.back') }}
@php $extra = [ [ 'targets' => 2, 'render' => 'function(data){ return data == \'credit\' ? \'' . __('trans.student.wallet.credit') . '\' : \'' . __('trans.student.wallet.debit') . '\'; }', ], ]; $actions = [ ['type' => 'custom', 'html' => '
  • name . ' (' . $student->phone . ')\'}\', \'${row.amount}\', \'${row.type}\', \'${row.description}\', \'${row.admin ? row.admin.name : ""}\', \'${row.created_at}\')" class="dropdown-item"> ' . __('trans.student.wallet.view_details') . '
  • '], ]; @endphp
    @endsection