@extends('layouts.app') @section('title','Offboarding') @section('content')<div class="space-y-6"><h1 class="text-2xl font-black">Offboarding & Final Settlement</h1><div class="card overflow-x-auto"><table class="w-full text-sm"><thead><tr><th class="p-3 text-left">User</th><th>Type</th><th>Last day</th><th>Status</th><th>Settlement</th><th></th></tr></thead><tbody>@foreach($items as $x)<tr class="border-t"><td class="p-3">{{ $x->user->name }}</td><td>{{ $x->type }}</td><td>{{ $x->last_working_date }}</td><td>{{ $x->status }}</td><td>{{ $x->final_settlement_amount }}</td><td>@if($x->status!=='completed')<form method="POST" action="{{ route('offboarding.complete',$x) }}">@csrf<button class="btn btn-soft">Complete</button></form>@endif</td></tr>@endforeach</tbody></table></div>{{ $items->links() }}</div>@endsection