$payrolls->getRouteKey(), 'key' => [ 'public' => $payrolls->getPublicKey(), 'route' => $payrolls->getRouteKey(), ], 'employee_id' => $payrolls->employee_id, 'amount' => $payrolls->amount, 'payment_mode' => $payrolls->payment_mode, 'description' => $payrolls->description, 'documents' => $payrolls->documents, 'notes' => $payrolls->notes, 'user_id' => $payrolls->user_id, 'user_type' => $payrolls->user_type, 'deleted_at' => $payrolls->deleted_at, 'url' => [ 'public' => trans_url('salary/'.$payrolls->getPublicKey()), 'user' => guard_url('salary/payrolls/'.$payrolls->getRouteKey()), ], 'status' => trans('app.'.$payrolls->status), 'created_at' => format_date($payrolls->created_at), 'updated_at' => format_date($payrolls->updated_at), ]; } }