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

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

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

{{ __('trans.teacher.wallet_trans.add_transaction') }}

@csrf

{{ __('trans.teacher.wallet_trans.title') }} - {{ $teacher->name }} ({{ $teacher->phone }})

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