@extends('layouts.account') @section('header-account')

{{ $customer->name }} {{ $customer->surname }} {{ $account->accid }}

@if ($account->acctype == 'L') @if(strpos($account->accid, '001300') === 0) เงินกู้บำบัดทุกข์ @elsif(strpos($account->accid, '001301') === 0) เงินกู้พิเศษ @elsif(strpos($account->accid, '001302') === 0) เงินกู้เคหสงเคราะห์ @endif @endif {{ number_format($account->balance, 2) }}

@endsection @section('content')
@foreach($account->trans()->orderBy('transdate', 'desc')->get() as $tran)
วันที่
{{ date("Y/m/d", strtotime($tran->transdate)) }} {{ number_format($tran->amt1, 2) }} {{ number_format($tran->amt2, 2) }} {{ number_format($tran->balance, 2) }} @endforeach
@endsection