@extends('layouts.app') @section('content')
Credits
@foreach($credits as $credit) @endforeach
ID Date Branch Customer Amount
{{$credit->id}} {{ date('d M, Y',strtotime($credit->date)) }} {{ $credit?->branch?->name }} {{ $credit?->customer?->name }} {{ $credit->amount ? number_format($credit->amount) : 0 }}
@endsection