@extends('adminlte::page') @section('title', 'Kasbon') @section('content_header')

Kasbon

@stop @section('content')



Outlook 1


@php $total1 = 0; @endphp

@foreach ($data1 as $key => $value) @php $total1 += $value->kasbon->sum('price'); @endphp @endforeach

Total: Rp. {{ number_format($total1) }}

Outlook 2


@php $total2 = 0; @endphp

@foreach ($data2 as $key => $value)
@foreach($value->kasbon as $kasbon) @endforeach
Tanggal
Price
Aksi
{{date('Y-m-d', strtotime($kasbon->created_at))}}
Rp {{number_format($kasbon->price)}}
@csrf
Rp. {{number_format($value->kasbon->sum('price'))}}
@php $total2 += $value->kasbon->sum('price'); @endphp @endforeach

Total: Rp. {{ number_format($total2) }}

@endsection