@extends('admin.admin_dashboard') @section('admin')
@foreach($costs as $i => $c) @endforeach
# Date Resource Hours Rate Cost Action
{{ $i+1 + ($costs->currentPage()-1)*$costs->perPage() }} {{ \Carbon\Carbon::parse($c->date)->format('Y-m-d') }} {{ $c->resource->name }} {{ number_format($c->hours, 2) }} {{ number_format($c->rate, 2) }} {{ number_format($c->total_cost, 2) }}
{{ $costs->links('vendor.pagination.bootstrap-5') }}
{{-- SweetAlert2 --}} @endsection