@extends('admin.layout.app')
@section('styles')
{{-- Optional Styling --}}
@endsection
@section('body')
{{-- Flash alerts --}}
@if (session('success'))
{{ session('success') }}
@endif
@if (session('error'))
{{ session('error') }}
@endif
{{-- Validation summary (optional) --}}
@if ($errors->any())
There were some problems with your input:
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
Laborers
Manage workers and wages
New Laborer
{{-- Fixed: call the correct function name --}}
{{-- Filter Inputs --}}
{{-- Table --}}
| # |
Name |
CNIC/Passport |
Hourly Wage |
Timesheets |
Actions |
@foreach ($laborers as $l)
| {{ $l->id }} |
{{ $l->name }}
|
{{ $l->cnic_passport }} |
${{ number_format($l->hourly_wage, 2) }} |
{{ $l->timesheets_count }} |
|
@endforeach
{{-- Pagination --}}
{{ $laborers->links() }}
@endsection
@section('scripts')
@endsection