@extends('layouts.master') @section('title') billing @endsection @section('css') @endsection @section('content') {{-- @component('components.breadcrumb') @slot('li_1') Account @endslot @slot('title') settings @endslot @endcomponent --}}
@include('clients.header')
@include('layouts.partials.flash')
CLIENT BILLING
{{-- Create Service --}}
@if(isset($transactions) && count($transactions))
@foreach($transactions as $transaction) @endforeach
ID Type Credit Debit Date Title Description
{{ $transaction->id }} @if($transaction->type == 'deposit')
{{$transaction->type}}
@else
Payment
@endif
@if($transaction->type == 'deposit') {{ number_format($transaction->amount, 2) }} ksh @endif @if($transaction->type == 'withdraw') {{ number_format($transaction->amount, 2) }} ksh @endif {{ $transaction->created_at->format('d-M-Y') }} [{{ $transaction->created_at->diffForHumans() }}] {{ $transaction->meta['title'] ?? 'N/A' }} {{ $transaction->meta['description'] ?? 'N/A' }}
@else
Sorry! No transaction Found

client has no transaction

@endif
@endsection @section('script') @if (count($errors) > 0) @endif @endsection